That looks right. I'm not too sure about the ID you're using
("form:msgBox"). I don't know if it needs to be "fully qualified" or
not, but I think that's a/the correct general approach.
-----
Jason Lee, SCJP
JSF RI Dev Team
Programmer/Analyst
http://www.iec-okc.com
> -----Original Message-----
> From: Todd Patrick [mailto:Todd.Patrick_at_dtn.com]
> Sent: Tuesday, November 07, 2006 2:18 PM
> To: users_at_javaserverfaces.dev.java.net
> Subject: RE: RE: Scenario: Logout and display text content in
> a h:message component - do I use a query string?
>
> OK, good thought!
>
> So I could something in the lines of:
>
> FacesContext context = FacesContext.getCurrentInstance();
> FacesMessage msg = new FacesMessage();
> msg.setSeverity(FacesMessage.SEVERITY_INFO);
> msg.setSummary("Log out successful.");
> context.addMessage("form:msgBox", msg);
>
> Thanks,
>
> --Todd
>
>
> -----Original Message-----
> From: Jason Lee [mailto:lee_at_iecokc.com]
> Sent: Tuesday, November 07, 2006 2:12 PM
> To: users_at_javaserverfaces.dev.java.net
> Subject: RE: Scenario: Logout and display text content in a
> h:message component - do I use a query string?
>
> In the logout method in your backing bean, register a message
> for the intended h:message component?
>
> -----
> Jason Lee, SCJP
> Programmer/Analyst
> http://www.iec-okc.com
>
>
> > -----Original Message-----
> > From: Todd Patrick [mailto:Todd.Patrick_at_dtn.com]
> > Sent: Tuesday, November 07, 2006 2:08 PM
> > To: users_at_javaserverfaces.dev.java.net
> > Subject: Scenario: Logout and display text content in a h:message
> > component - do I use a query string?
> >
> > The scenario is the following:
> >
> > I have a JSF login page, in which when a user logs out - I want to
> > display the JSF login page with a text message in a h:message
> > component.
> >
> > From the Faces Context how would I display the h:message
> component on
> > a log out only?
> >
> > I don't think I should use a query string?
> >
> > I don't believe I can pass a parameter in a navigation rule?
> >
> > <navigation-rule>
> > <description>Navigation for the toolbar.</description>
> > <from-view-id>*</from-view-id>
> > <navigation-case>
> > <from-action>#{authenticationBean.logout}</from-action>
> > <from-outcome>success</from-outcome>
> > <to-view-id>/login/login.jsp</to-view-id>
> > </navigation-case>
> > </navigation-rule>
> >
> > Thoughts on the *JSF* way to solve this would be appreciated.
> >
> > Thanks,
> >
> > --Todd
> >
> > -----------------------------------------
> > NOTICE: This email message is for the sole use of the intended
> > recipient(s) and may contain confidential and privileged
> information.
> > Any unauthorized use, disclosure or distribution is
> prohibited. If you
>
> > are not the intended recipient, please contact the sender by reply
> > email and destroy all copies of the original message.
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe_at_javaserverfaces.dev.java.net
> > For additional commands, e-mail:
> > users-help_at_javaserverfaces.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail:
> users-help_at_javaserverfaces.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail:
> users-help_at_javaserverfaces.dev.java.net
>
>