This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MyFaces Datascroller - Need to keep user edits while scrolling

 
Steven Gray
Greenhorn
Posts: 8
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic