Reputation: 3171
<h:selectManyCheckbox id="accountGroup" layout="pagedirection"
value="#{xxx.accountGroup}" style="FONT-SIZE: 11px;"
onclick="selectAllAccountGroup(this.value);fireAjax();">
<f:selectItem itemValue="0" itemLabel="Select All" />
<f:selectItems value="#{xxx.userGroup}" />
<a4j:jsFunction name="fireAjax" action="#{xxx.groupChanged}"
ajaxSingle="true" reRender="accountNumbersOp" process="accountGroup">
</a4j:jsFunction>
</h:selectManyCheckbox>
Above is a list of check-boxes with select all option, if select all is selected all check-boxes are selected. On the basis of selected values I have to populate another check-box list, whose logic is in action method. I am facing few issues.
Any suggestions how can I accomplish this in a better way.
I am on jsf 1.2, richfaces 3.3.3, weblogic 10.3.2(Portal)
Upvotes: 0
Views: 2927
Reputation: 1582
I would start with placing a4j:jsFunction outside h:selectManyCheckbox, it shouldn't be nested inside.
Upvotes: 1