0 Replies Latest reply on Aug 27, 2012 10:11 AM by thiagosiqueira

    RichFaces with pagination in database

    thiagosiqueira

      Hello

       

       

      I'm having the following problem with my application:

       

       

      I have a rich:datamodel on my page, and for the purpose of performance, I do a search for 30 elements at a time.

      The problem occurs when I try to sort the listing data.

      E.g.:

      The search returned 40 elements, so 2 pages will be displayed.

      The first page is correct, with perfect ordering.

      In the second page the following happens:

      This is how it should appear:

      A

      B

      C

      D

      E

      F

      G

       

       

      That's the way it is appearing:

      E

      F

      G

      A

      B

      C

      D

       

       

      This happens with any sort I do: always the first 3 elements of the last page, are presented in the last position in the list.

       

       

      Someone went through this?

       

       

      Best Regards

      Thiago Siqueira