This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
MyFaces Datascroller - Need to keep user edits while scrolling
posted 5 years ago
I have a datatable where I want users to be able to numerically rank their selections. After they submit their selections, the database is updated to reflect their choices.
Please rank the people you would like to meet with:
In this example the user has indicated that their first choice is to meet with Tom, their second choice is to meet with Pete, etc. They do not wish to meet with John, Bill or Dana.
This works fine if I have a datatable with a scroll bar. I would like to allow the users to page through their selections using a datascroller before they submit their choices. The problem is that any choices entered by the user are lost when they scroll to a new page. If I am correct, this is because the backing bean is in request scope and the contents are refreshed when the user uses the datascroller. Is there a way to have the datatable retain any user edits while paging through the data? Any insight would be appreciated.