3 Replies Latest reply on Apr 8, 2012 9:55 AM by songjinglim

    Datatable server side sorting and filtering Richfaces 4

    Antony Antony Newbie

      Hi everyone,

       

      I am trying a migration JSF 1.2 to JSF 2, so I try to upgrade also richfaces libraries from 3.3 to 4.

      To get dynamic sorting and filtering with the pagination dataTable component I implemented the JBoss serializableDataModel suggested on

      the richfaces showcase web site.

       

      In richfaces 4 this interface no longer exists, so I was wondering how to implement dynamic sorting as before.
      With previous behavior when I loaded my grid I counted all elements matching my request to get the number of pages, then I loaded all data for the current page, with this way only 1 page was loaded instead of loading all elements for all pages.

       

      The richfaces 4 demo does not explain how to figure out this problem, only client side sorting/filtering is detailed.

       

      Thanks for your help