This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes MyFaces Datascroller - Need to keep user edits while scrolling Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "MyFaces Datascroller - Need to keep user edits while scrolling" Watch "MyFaces Datascroller - Need to keep user edits while scrolling" New topic
Author

MyFaces Datascroller - Need to keep user edits while scrolling

Steven Gray
Greenhorn

Joined: Mar 26, 2006
Posts: 8
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://zeroturnaround.com/jrebel
 
subject: MyFaces Datascroller - Need to keep user edits while scrolling
 
Similar Threads
Problem With Richfaces datatable and datascroller
checkbox list in struts 2
Database populated dataTable/table selection?
Tomahawk dataTable - holding data in backing bean with scroller
DataTable with DataScroller issue