Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MyFaces Datascroller - Need to keep user edits while scrolling

 
Steven Gray
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Example:
Please rank the people you would like to meet with:

__ John
4 Sally
__ Bill
1 Tom
3 Sue
__ Dana
2 Pete

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic