I have a rich:dataTable with a checkbox column. When the checkbox in a row has been checked I need to disable the checkboxes in some of the other rows.
I have made a start and am successfully calling an ajax event handler onclick, but am not sure how to passs the varObj (row object) of the row which has been checked into the ajax event handler i.e. myPage.rowChecked.
Here is an extract from my code:
<rich:column>
<h:selectBooleanCheckbox value="#{varObj.selected}">
<a4j:support event="onclick" actionListener="#{myPage.rowChecked}" reRender="myTable" ajaxSingle="true" limitToList="true" />
</h:selectBooleanCheckbox>
</rich:column>
Thanks
Martin
you could define rowKeyVar for dataTable and pass it using a4j:actionparam or f:param