Stephen Friedrich stephen.friedrich at fortis-it.eu
Sat Sep 6 09:00:16 EDT 2008

Interesting. I had my hopes up, that this would help in my app, too.
(Assuming you were talking about preventing a ViewExpiredException when
the login page was sitting idle for too long, before being submitted.)

It took me a short while to figure out that the context parameter is
actually named facelets.BUILD_BEFORE_RESTORE (it is defined in a
constant FaceletViewHandler.PARAM_BUILD_BEFORE_RESTORE).

The ViewExpiredException is really no longer occuring now, but
instead I get a org.jboss.seam.RequiredException (haven't seen this
any other time in my app).
It seems some initialization is now no longer happening in Seam.

Would be great if someone intimate with the Seam sources could have
a look...

-----Ursprüngliche Nachricht-----
Von: seam-dev-bounces at lists.jboss.org [mailto:seam-dev-bounces at lists.jboss.org] Im Auftrag von Dan Allen
Gesendet: Freitag, 5. September 2008 15:00
An: seam-dev at lists.jboss.org

Hey guys,

During the panel discussion last night as JSF One, I learned about an
undocumented feature in Facelets, which may be just the solution you
were looking for, Christian, regarding stale views on a login or other
public form page. Facelets has the ability to build the view during
the restore view phase if on postback the view state couldn't be
found. You simply set the context parameter PARAM_BUILD_BEFORE_RESTORE
to true. As it turns out, this is going to be the default behavior in
JSF 2.0 to avoid the very problem that you observed, that a stale
login page would reject a login, throw up a confusing message, and ask
the user to try again.


Dan Allen
Software consultant | Author of Seam in Action


NOTE: While I make a strong effort to keep up with my email on a daily
basis, life and work come first and, at times, keep me away from my mail
for a while. If you contact me, then don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters. Please don't hesitate to resend a message if
you feel that it did not reach my attention.
seam-dev mailing list
seam-dev at lists.jboss.org

More information about the seam-dev mailing list