This content has been marked as final.
Show 5 replies
-
1. Re: How to keep error messages during redirect
nbelaevski May 26, 2009 5:44 AM (in response to kaiwerther)Hello Kai,
Are you using Seam? -
2. Re: How to keep error messages during redirect
kaiwerther May 26, 2009 5:52 AM (in response to kaiwerther)No just JSF
(i know, i know i have to learn seam ...) -
3. Re: How to keep error messages during redirect
nbelaevski May 26, 2009 6:52 AM (in response to kaiwerther)Looks like, it's not possible out of the box wthout Seam. Redirect creates new request, thus old request-scoped variables are cleared. You can save messages to session, however this doesn't look like a good solution either.
-
4. Re: How to keep error messages during redirect
kaiwerther May 26, 2009 8:06 AM (in response to kaiwerther)So implementing two phase listeners
- one saving the messages to session
- one restoring the messages from session
is the only way? That can't be ...
It doesn't feel right -
5. Re: How to keep error messages during redirect
kaiwerther May 28, 2009 3:16 AM (in response to kaiwerther)Resolved this issue by putting all FacesMessages to Session and restored them by a Phase Listener before RENDER_RESPONSE.