Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LazyDataModel Multiple column sort pagination

 
senthil selva
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic