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 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Keeping track of question number
 
Similar Threads
Type-IV Driver with servlet
JDBC
visual J++ and retreiving rows from sql server
Simple redirect not working
Data source name not found and no default driver specified