wood burning stoves 2.0*
The moose likes JSF and the fly likes Keeping track of question number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Keeping track of question number" Watch "Keeping track of question number" New topic
Author

Keeping track of question number

tom davies
Ranch Hand

Joined: Apr 27, 2012
Posts: 168
I am creating an e-learning site, the user will have a series of 20 questions, i have the questions to automatically update when the the next button is clicked but i have a line at the top saying what question you are on. This wont update. I have a feeling it is not storing the page value but is just initializing it at 0 and then adding 1 every time the next button is clicked.

FIXED: I changed @RequestScoped to @SessionScoped
 
Don't get me started about those stupid light bulbs.
 
subject: Keeping track of question number