This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hi. I have been re-reading "JSF In Action" and there is something I didn't understand. ShowHistoryBean is a request based bean and its role is displaying the project's history using paging technique. Project's history is displayed using UIData component.
Suppose the page is requested for the first time, a new instance of ShowHistoryBean is created and first variable's value is 0. The user clicks on next button, the books says that first variable's value will be 5 (the example is paging each 5 records). But isn't supposed to create a new ShowHistoryBean each time the user clicks on next button as ShowHistoryBean's scope is request? In the book's example, how historyDataTable is remembering first variable's value?