1 Reply Latest reply on Apr 1, 2008 6:19 AM by Ilya Shaikovsky

    How to get DataTable row in ajax event handler

    Martin Denham Newbie

      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:

      <h:selectBooleanCheckbox value="#{varObj.selected}">
      <a4j:support event="onclick" actionListener="#{myPage.rowChecked}" reRender="myTable" ajaxSingle="true" limitToList="true" />