richfaces_version - 4.2.2.Final
browser - IE 7
I want to have list of checkboxes on my UI page. And each checkbox value has to be refreshed (set in bean) immediately after it is changed.
The problem is that a4j:ajax doen't work for h:selectBooleanCheckbox in IE 7 (my target browser). Other browsers works fine.
a4j:ajax works correctly only for the first checkbox in the list.
If I have smth. like this (no itebables like rich:dataTable, just simple checkbox) everything works fine !
<h:selectBooleanCheckbox value="#{item.booleanProperty}" > <a4j:ajax event="valueChange" execute="@this" /> // I want my checkbox value to be saved in appropriate bean's field with each valueChange </h:selectBooleanCheckbox>
This is what I have found [RF-9417] a4j:ajax doesn't work with selectManyCheckbox - JBoss Issue Tracker
The code below does not work.
<a4j:outputPanel id="panelId"> <rich:dataTable id="dataTableId" value="#{bean.listOfItems}" var="item"> <rich:column> <f:facet name="header"> <h:outputText value="#{some_message}" /> </f:facet> <h:panelGrid columns="2"> <h:selectBooleanCheckbox value="#{item.booleanProperty}" > <a4j:ajax event="valueChange" execute="@this" /> // I want my checkbox value to be saved in appropriate bean's field with each valueChange </h:selectBooleanCheckbox> <h:commandLink value="#{some_text}" action="#{bean.goToSomePage()}" /> </h:panelGrid> </rich:column> </rich:dataTable> </a4j:outputPanel>
Any suggestions (solutions , workarounds) ??
Try with a more recent RichFaces release. What container are you deploying to? What implementation/version of JSF?