0 Replies Latest reply on Dec 1, 2010 7:55 AM by Nicolas U.

    Select a row in a rich:dataTable with ajax pagination?

    Nicolas U. Newbie

      Hello all.


      I have make a rich:datatable with pagination, order and filter on server side like this tuorial:
      http://www.andygibson.net/blog/2008/10/02/codeless-ajax-ordered-and-paginated-tables-in-seam/
      I have use rich:datatable in place of h:datatable, but it's is work the same.
      I have add a few h:selectOneMenu and RESTRICTIONS in EntityQuery to make it's work.


      Everything is nice, fast and serverside.
      I Can share svn 4 eclipse if someone want a exemple.


      Now i d'like to be able to select a row in my datatable.


      i have use the usual way with:


      <a4j:commandLink value="#{v_project.code}" action="#{encodeAction.goEncode}">
           <f:setPropertyActionListener target="#{encodeAction.clickedProject}" value="#{v_project}" />
      </a4j:commandLink>
      



      and add redirection in page.xml


      The probleme is when i use pagination or filtering and i select one row, the setPropertyActionListener set the old row in my backingbean.


      I load my page with rich:datatable and select first row on page 1: ok it's work.


      Now i load page, use pagination to go on page 2, and select first row: error, it's select first row from page 1.


      How can i set the good row on my backing bean?


      Thx