hi every body,
I have a datatable and checkboxes in each row. Moreover, I have a datascroller
at the bottom of my table as well.
My problem is when I click the next page number from the scroller, the selected
checkboxes at the first page of the datatable is gone. I mean, even if they
were selected, clicking the next page make them deselected. I see it by going
back to the first page again by clicking the scroller.
Do you have any idea about that problem? In order to clearify my case, I
attached my code below:
<rich:dataScroller for="table" maxPages="10" renderIfSinglePage="false"/>
<rich:dataTable value="#{currencyBean.listeCurrency}" var="carrency" id="table"
rows="11" rowClasses="row1,row2">
<h:column>
<f:facet name="header"></f:facet>
<h:selectBooleanCheckbox
value="#{currencyBean.checked[carrency.currency_code]}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText>Currency code</h:outputText>
</f:facet>
<h:outputText value="#{carrency.currency_code}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText>Abreviation</h:outputText>
</f:facet>
<h:outputText value="#{carrency.currency_code_alpha}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText>Wording</h:outputText>
</f:facet>
<h:outputText value="#{carrency.currency_name}"></h:outputText>
</h:column>
</rich:dataTable>
Many thanks in advance, Ayoub :)