chkal/pf-issue-test — Issue #14: ViewExpiredException on postback while using richfaces 3.3.x with prettyfaces
Author: chkal
Created: 2012-03-06 07:15:56+00:00
State: open

Originally filed by **paul.p.m...@gmail.com** on 2009-05-22T16:42:16

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=11

On pages that do a postback with session scoped backing beans, we are
getting a ViewExpiredException, even when the session has not timed out.
We configured the richfaces filter(tried putting it before and after) thus -

RichFaces Filter
richfaces
org.ajax4jsf.Filter

richfaces
/*
FORWARD
REQUEST
INCLUDE

(The weird part was that the ViewExpiredException would occur by just
dropping the richfaces libraries in and not even configuring it in the web.xml)

This however works on regular pages if there are no postbacks and of course
works if we remove richfaces.

Thanks,
Paul.

If this helps...
On further debugging we found out that the AjaxStateManager from Richfaces
was not restoring the view, it couldn't find the view with the given viewId.