[jboss-user] [JBoss Seam] - Re: Displaying message after logout

jacob.orshalick do-not-reply at jboss.com
Fri Jan 4 18:53:59 EST 2008


"seamdev" wrote : Messages added to current instance of javax.faces.FacesContext don't show up on next page.

You should add messages to the Seam FacesMessages component as it is scoped to the conversation which is carried across redirects...

Then again, I believe you are going to have issues here regardless because from my recollection the session is expired by the identity.logout action.  The FacesMessages component is scoped to the conversation and the conversation is destroyed along with the session.  Thus, any messages you have added will be gone when a new session is created and a temporary conversation is started.

Try out the FacesMessages component though, and let me know what happens...

I wrote a blog posting a little while back on differentiating between a fresh login, session expired, and logout:

http://solutionsfit.com/blog/2007/11/16/session-expired-messages-using-seam-security/

It doesn't address your exact scenario but will provide a little insight into the messaging issues with security.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117228#4117228

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117228



More information about the jboss-user mailing list