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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "ViewExpiredException: catching not working for <h:selectBooleanCheckbox >" Watch "ViewExpiredException: catching not working for <h:selectBooleanCheckbox >" New topic

ViewExpiredException: catching not working for <h:selectBooleanCheckbox >

Johannes barberaren

Joined: Sep 27, 2011
Posts: 4

Hi got a page where I want to catch the ViewExpiredException in the following way

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?


Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this will help.

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
I agree. Here's the link:
subject: ViewExpiredException: catching not working for <h:selectBooleanCheckbox >
It's not a secret anymore!