gpt4 book ai didi

java - 单击复选框后面板重新加载

转载 作者:行者123 更新时间:2023-12-02 00:50:23 24 4
gpt4 key购买 nike

我有以下场景(使用丰富的面孔):

  ...
<a4j:outputPanel id="foo">
<h:commandButton disabled="#{not _user.selected}" value="Do Stuff" />
</a4j:outputPanel>
...
<h:selectBooleanCheckbox value="#{_user.selected}">
</h:selectBooleanCheckbox>
...

我现在希望在单击复选框时重新加载“foo”面板。将重新加载功能添加到复选框的正确方法是什么?

最佳答案

因为您正在使用richfaces(如您标记的那样):

<h:selectBooleanCheckbox value="#{_user.selected}">
<a4j:support event="onclick" reRender="foo" ajaxSingle="true"/>
</h:selectBooleanCheckbox>

关于java - 单击复选框后面板重新加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3466347/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com