开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜