Display Tag JSP Sorting Issue

I'm using the JSP Display tag library (website is http://displaytag.sourceforge.net/1.2/). I have pagesize set to 30.  I have a total of 280 records.  Therefore, the tables displayed have pagination (Next page, first, previous, 1, 2, 3, etc.).  I have sorting enabled.  The problem is that sorting is performed on a per page basis.  

One of the users  would like to see sorting on ALL records WITH pagination.  That is sort all records when click on column.  When click Next page, sorting order is maintained.

Any ideas from Display Tag users?
lcorAsked:
Who is Participating?
 
kadabaConnect With a Mentor Commented:
check this example, I guess this has what you are looking out for.

http://displaytag.homeip.net/displaytag-examples-1.2/example-pse.jsp
using sort="list"

see the view source.
0
 
arevuriCommented:
sort all the records using SQL and then select required records using ROWNUM in oracle
0
 
lcorAuthor Commented:
this solution works!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.