wood burning stoves 2.0
The moose likes JSF and the fly likes LazyDataModel Multiple column sort pagination Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "LazyDataModel Multiple column sort pagination" Watch "LazyDataModel Multiple column sort pagination" New topic

LazyDataModel Multiple column sort pagination

senthil selva

Joined: Mar 18, 2013
Posts: 4
Hi friends, i have a problem in multiple sorting with prime faces data table- lazy loading

i have a testcase ready with MINIMAL WORKING and this is my testcase..

i just enabled multiple sorting in the showcase code for "Data Table - Lazy Loading"

and as expected it works well except the below situation

"when i paginate with multiple columns sorting, the load method (with "List<Sort Meta>")does not give me the column details which are currently sorted to carry over to the other page, unlike the load method (with "String sort Field,Sort Order sort Order") which gives those sorting details."

for example:-

1. click on the sorting arrow in "manufacturer" and then control button+click on the sorting arrow of "year"
- you would get the sorting column details to the load method (i have printed the input parameters value inside load method).

2. Now, do pagination.Here the load method fails to give the sorting columns detail
- not only for pagination, if you enter column filter values after clicking on the sorting columns, the same problem exist

can any one help me to fix this ..
Thanks in advance
I agree. Here's the link: http://aspose.com/file-tools
subject: LazyDataModel Multiple column sort pagination
It's not a secret anymore!