Not really, the ViewExpired exception just means that
the current ViewState cannot be found anymore in the view history.
If you navigate
to a new page, you basically get a "Tabula Rasa" aka a new
ViewState.
Either way if it is the JSF Ajax problem, the javascript workaround
definitely will fix your issue.
Werner
Am 29.12.11 22:31, schrieb Rohit Kelapure:
Once this ViewExpiredException occurs does it affect other pages that do
NOT have multiple forms ?
--Thanks,
Rohit
On Wed, Dec 28, 2011 at 4:55 PM, Werner Punz<[email protected]> wrote:
Do you use multiple forms in conjunction with JSF ajax?
Werner
Am 28.12.11 18:30, schrieb Rohit Kelapure:
Dear all,
We have run into an issue with our application in production wherein once
a
database rollback occurs, our application state somehow gets messed and we
repeatedly keep seeing ViewExpiredExceptions like so ...
[12/24/11 3:51:52:301 EST] 000003b3 SystemErr R
javax.faces.application.**ViewExpiredException: /showItem.xhtml No saved
view
state could be found for the view identifier: /showItem.xhtmlnull
[12/24/11 3:51:52:302 EST] 000003b3 SystemErr R at
org.apache.myfaces.lifecycle.**RestoreViewExecutor.execute(**
RestoreViewExecutor.java:128)**null
[12/24/11 3:51:52:302 EST] 000003b3 SystemErr R at
org.apache.myfaces.lifecycle.**LifecycleImpl.executePhase(**
LifecycleImpl.java:171)null
[12/24/11 3:51:52:302 EST] 000003b3 SystemErr R at
org.apache.myfaces.lifecycle.**LifecycleImpl.execute(**
LifecycleImpl.java:118)null
Caused by: javax.faces.application.**ViewExpiredException:
/showShoppingCart.xhtml No saved view state could be found for the view
identifier: /showShoppingCart.xhtml
at
org.apache.myfaces.lifecycle.**RestoreViewExecutor.execute(**
RestoreViewExecutor.java:128)
at
org.apache.myfaces.lifecycle.**LifecycleImpl.executePhase(**
LifecycleImpl.java:171)
at
org.apache.myfaces.lifecycle.**LifecycleImpl.execute(**
LifecycleImpl.java:118)
at com.ibm.faces20.portlet.**FacesPortlet.processAction(**
FacesPortlet.java:238)
This happens for ALL the JSF facelets *.xhtml files in our application.
This is a JSF 2 application.
What is the next step in debugging these ViewExpiredExceptions ?
For starters I have enabled the trace *
*=info:org.apache.myfaces.**lifecycle*=all*
*
*
All your tips are appreciated.
--Thanks,
Rohit Kelapure