Menu

Displaytag pagination and sorting

Help
jelias3010
2006-11-28
2012-10-09
  • jelias3010

    jelias3010 - 2006-11-28

    Hi.

    I'm working with displaytag library, it's perfectly adapted for my solution, but i'm having a problem with the pagination and the sorting, is not really an issue of diplaytag it's a requirement of my client. This is what is happening: when displaytag makes a pagination, for example it's showing 5 rows, when i pass to the second page i need to displaytag works with the same list, but is making the query again, My suggestion was work with a sessionScope list but it's was rejected.

    I need some help, if there is some way to make displaytag work in memory let me know please.

    Thanks and sorry for my english.

    jelias3010.

     
    • Bui Anh Khoa

      Bui Anh Khoa - 2006-11-29

      Hi,
      You can try with your requestURI property. Is must be the same to your action forward.
      <display:table ... requestURI="/yourAction.do" ... name="sessionScope.yourSessionName" sort="page" >

      Hope this helps you.
      Best regards, Khoa.

       

Log in to post a comment.