File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
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.
 
jQuery in Action, 2nd edition
 
subject: MyFaces Datascroller - Need to keep user edits while scrolling