2 Replies Latest reply on Mar 22, 2007 8:19 AM by ilya_shaikovsky

    <rich:dataTable> Row selection

    danjepp

      Hi,

      How do i catch the event that a row in my dataTable has been selected in my backing bean?

      I have the following:
      rich:dataTable value="#{dealList.data}" var="deal" id="dealTable" rows="5">
      <a4j:support event="onRowClick" actionListener="#{dealList.rowSelected}"/>
      ...

      This happily calls my rowSelected(ActionEvent) method on the backing bean but how can i find out which row/object was selected?

      Thanks.

      PS any ideas how to color the table row when selected would be of interest as well

      Many thanks