Thanks for the response.
OK, so it is correct to set the User object at a successful login,
however to "maintain" the User object, it should be called by a backing
bean with a session scope.
Maybe that backing bean could be a User Details bean and one of the
objectives is to displayed the logged in user's name at the top of each
page?
Thanks,
--Todd
-----Original Message-----
From: Jason Lee [mailto:lee_at_iecokc.com]
Sent: Wednesday, November 01, 2006 1:35 PM
To: users_at_javaserverfaces.dev.java.net
Subject: RE: Does an object that contains user session data need to be a
managed bean?
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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net