This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes ViewExpiredException: catching not working for <h:selectBooleanCheckbox > Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "ViewExpiredException: catching not working for <h:selectBooleanCheckbox >" Watch "ViewExpiredException: catching not working for <h:selectBooleanCheckbox >" New topic
Author

ViewExpiredException: catching not working for <h:selectBooleanCheckbox >

Johannes barberaren
Greenhorn

Joined: Sep 27, 2011
Posts: 4

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
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help.

http://weblogs.java.net/blog/edburns/archive/2009/09/03/dealing-gracefully-viewexpiredexception-jsf2


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ViewExpiredException: catching not working for <h:selectBooleanCheckbox >
 
Similar Threads
ViewExpiredException - Session not expired yet
error-page for ViewExpiredException ignored by my jsf implementation
Getting ViewExpiredException
ViewExpiredException
ViewExpiredException: (Myfaces1.2.6 and Richfaces3.3.0) Possible problem and solution discussion.