File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ViewExpiredException: catching not working for <h:selectBooleanCheckbox >

 
Johannes barberaren
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic