posted 12 years ago
Hi got a page where I want to catch the ViewExpiredException in the following way
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/index.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/index.jsp</location>
</error-page>
This seems to work for <h:commandButton />
however I also have a <h:selectBooleanCheckbox > that does not work, looking like this:
<h:selectBooleanCheckbox value="#{resYear.showCalculations}">
<f:ajax render="@form" />
when you press this after the session has ended you get a popup saying
"serverError: class javax.faces.application.ViewExpiredException viewId:/index.jsf - View /index.jsf could not be restored."
Any suggestions on this?
Regards
Johannes