This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need help in order to implement a scrolling combined with a sorting strategy for a datatable.
Here is the behaviour I need:
A user should be able to scroll a datatable in steps of N records. He/she should then be able to sort that N records and not the whole of the resultset.
My problem is that I copied and pasted code in order to implement the sorting strategy and then copied and pasted code in order to implement the scrolling strategy and now I have the following behavior: the user can scroll but when he/she attempts to sort, the whole of the resultset is sorted and records not belonging to the "page" (of N records) are displayed.
Here is the Datamodel:
The code for the managed bean is as follows:
Here are the relevant snippets from my JSPs:
I am at a loss on how to proceed in order to make it work.