Panel reload after Checkbox Click
I have开发者_StackOverflow社区 the following scenario (using rich faces):
...
<a4j:outputPanel id="foo">
<h:commandButton disabled="#{not _user.selected}" value="Do Stuff" />
</a4j:outputPanel>
...
<h:selectBooleanCheckbox value="#{_user.selected}">
</h:selectBooleanCheckbox>
...
I now want the 'foo' panel to reload when I click the checkbox. What's the correct way to add the reload functionality to the checkbox?
since you are using richfaces (as you tagged):
<h:selectBooleanCheckbox value="#{_user.selected}">
<a4j:support event="onclick" reRender="foo" ajaxSingle="true"/>
</h:selectBooleanCheckbox>
精彩评论