users@javaserverfaces.java.net

client side state saving for specific pages

From: <jtougas_at_gmail.com>
Date: Fri, 18 Feb 2011 21:12:03 +0000 (GMT)

With JSF 1/Mojarra I was used to overriding the isSavingStateInClient
method of the StateManager class to return true for particular pages.
This was used to prevent certain views from expiring, the login page
was a good example, leaving the remaining views' state saving server
side.

With JSF 2/Mojarra 2.1.0 however I can't get this to work
(ResponseStateManagerImpl reads the setting once in it's constructor
and never looks back) . I read the spec and this is in line with the
spec since method's behavior is well defined: section 7.7.5 says it
_must_ return the servlet init parameter, but this was also the case in
JSF1... So I'm wondering if this is an issue with the implementation of
this behavior.

Can someone clarify this, or propose an alternative to accomplish what
I'm trying to get at?

Thanks in advance!