Problem: I’m on some page of my application and am leaving for a while. Returning and clicking on the link, I get the message "Failed to restore viewID". The same thing happens when updating.
I can start a new session, but I need to manually change the URL as follows:
Active Address Window:
http:
in
http:
Then a new session is established, and the user must log back in to what I want.
In researching how to deal with this, I see many “solutions” that basically support the session, using client-side Javascript to periodically send requests to save the session. Personally, I do not consider this a desirable solution.
What I want is when the session time ends, all subsequent requests to any non-public page need to be redirected to index.xhtml. Links to pages that do not require login must go through a new session object. It is preferable that this be handled using only specific JSF 2 objects, but I don't mind writing a Servlet filter if that is what is required.
Can someone provide a link to what I missed?
jsf-2
Alanobject
source share