aspose file tools
The moose likes Spring and the fly likes Implementing Sorting with Pagination in Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Implementing Sorting with Pagination in Spring MVC" Watch "Implementing Sorting with Pagination in Spring MVC" New topic
Author

Implementing Sorting with Pagination in Spring MVC

shwetank sharma
Greenhorn

Joined: Jan 09, 2011
Posts: 10

Hi,

I want to implement paging and sorting on my Spring MVC application.

Paging I have easily achieved using PagedListHolder and working fine, now I need to implement sorting on each page and column.

Also the sorting need to be done on page not on complete list.

Restriction is that we cannot use Display Tag library.

~~Cheers~~
Shwetank
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282

PagedListHolder takes a SortDefinition. Create a new MutableSortDefinition if the one registered for you with default values is not suitable.

Then you can call doSort on the pagedListHolder.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Implementing Sorting with Pagination in Spring MVC
 
Similar Threads
Paging and Sorting in JSF
What is the difference between static vs dynamic in SQLJ
How to do Paging
jgrid - Spring MVC CRUD operation with pagination and without page refresh
[Spring Web Flow 2] Can Spring Web Flow work with Spring Web MVC?