I have a number of registration pages that are built on top of each other. When the user session ends, I have a Listener that clears everything on the server, and this works fine. But, if the user is trying to do something else, I just want to redirect them to the first page of the series. However, my filter does not work correctly. I keep getting javax.faces.application.ViewExpiredException
What is the best practice for handling this experience? I cannot just process in web.xml because it is too global. In addition, the error page is derived from some JSF code - it seems I need to catch that this happens using PhaseListener, so the exception does not occur in the first place, but I could not find a good model how to do this. Any ideas?
java jsf viewexpiredexception richfaces
Kyle boon
source share