[seam-dev] PARAM_BUILD_BEFORE_RESTORE

Dan Allen dan.j.allen at gmail.com
Fri Sep 5 08:59:51 EDT 2008


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

-- 
Dan Allen
Software consultant | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction

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.



More information about the seam-dev mailing list