This content has been marked as final.
Show 3 replies
-
1. Re: checkbox state not being reflected
sergeysmirnov Jul 28, 2007 4:27 PM (in response to daedlus)show the code snippet when you tried a4j:region please. (do not show the code with a4j:form. it is useless here).
-
2. Re: checkbox state not being reflected
daedlus Jul 29, 2007 1:35 AM (in response to daedlus)like this .
<a4j:region immediate="true"> <h:selectManycheckbox id="xvc" value="#{myBean.selectedItems}"> <f:selectItems value = "#{myBean.selectItems}"/> </h:selectMany checkbox> <a4j:commandButton event="onclick" action="#{myBean.setAllItemsAsSelected}" reRender="xvc"/> </a4j:region>
-
3. Re: checkbox state not being reflected
sergeysmirnov Jul 29, 2007 1:58 AM (in response to daedlus)this does not make sense because you still submit the selectManyCheckbox when you click the button. JSF believes the value cannot be changed as soon as you just submit it.
You need to surround with a4j:region only the a4j:commandButton.
In general , you can have left the immediate="true" is you know why it there.
a4j:commandButton has no 'event' attribute. So, remove it.
P.S. do not think about Ajax4jsf how about magic wand. Knowledge is better than hundreds wild attempts.