users@javaserverfaces.java.net

RE: Does an object that contains user session data need to be a managed bean?

From: Jason Lee <lee_at_iecokc.com>
Date: Wed, 1 Nov 2006 13:34:38 -0600

I wouldn't think so, but a reference to it should be maintained by a
managed bean of (at least) session scope (unless you want to manually
stuff that object in the session, which isn't very JSFy :).

-----
Jason Lee, SCJP
JavaServer Faces Reference Implementation Development Team
Programmer/Analyst
http://www.iec-okc.com
 

> -----Original Message-----
> From: Todd Patrick [mailto:Todd.Patrick_at_dtn.com]
> Sent: Wednesday, November 01, 2006 1:16 PM
> To: users_at_javaserverfaces.dev.java.net
> Subject: Does an object that contains user session data need
> to be a managed bean?
>
> I have a User object that contains data that I want to us
> throughout the application in a session.
>
> Should the User object be a managed bean?
>
> I wouldn't imagine that would be case since the User object
> is set at a successful login.
>
> Does this logic sound correct?
>
> 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
>
>