How to restore JSF view including the model values?

398 Views Asked by At

Is it possible to restore a jsf view including the values for the backing bean? The scenario is following:

the user is navigating within an application and the web server crashes. I want to make sure that the user has a seamless experience and can continue browsing without having to re-login. I know that the JSF component tree can be restored with saveView and restoreView methods etc. I am saving the view state as byte array in external cache and then before Restore phase i am restoring the view when needed. So i am using one listener before restore phase (for restoring) and one listener after render phase (for saving the most current view).

restoring the view seems to work. But the backing bean and its fields for the current page are not restored. Is it possible to restore those fields as well? and which JSF methods would i have to use here?

thanks in advance

0

There are 0 best solutions below