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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "LazyDataModel Multiple column sort pagination" Watch "LazyDataModel Multiple column sort pagination" New topic
Author

LazyDataModel Multiple column sort pagination

senthil selva
Greenhorn

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
 
Don't get me started about those stupid light bulbs.
 
subject: LazyDataModel Multiple column sort pagination
 
Similar Threads
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
Get the selected row in datatable [PRIMEFACES]
Primefaces datatable only show last item
Sorting is not working in my JSF PrimeFaces Datatable and blank (empty) rows are displayed filtering
DataTable Sortby does not work