Re: User Management - advice needed.

2005-10-20 Thread Volker Weber
Hi, there is a getUserPrincipal() method in ExternalContext, Regards Volker weber Jeffrey Porter wrote: Hello again. My question is this. I want when a JSF page is displayed, to look up the current user and display some information on them. For example… *%*

RE: User Management - advice needed.

2005-10-20 Thread CONNER, BRENDAN \(SBCSI\)
Title: Message We have a managed bean representing the user with session scope that is filled out when the user successfully logs in by the managed bean responsible for login. Any page then has access to the user's information. Our managed bean responsible for the login process has a

RE: User Management - advice needed.

2005-10-20 Thread Jeffrey Porter
Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: 20 October 2005 15:04 To: MyFaces Discussion Subject: RE: User Management - advice needed. Add a user-info-bean when a) the session is created (Session-listener) b) the user-credentials are created (by JAAS?) and just display them from within

RE: User Management - advice needed.

2005-10-20 Thread Jeffrey Porter
. -Original Message- From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sent: 20 October 2005 15:07 To: MyFaces Discussion Subject: RE: User Management - advice needed. We have a managed bean representing the user with session scope that is filled out when the user successfully logs

Re: User Management - advice needed.

2005-10-20 Thread Marius Kreis
so how do you control the authorization? do you insert a check into every single page? or via phaseListener, navigationHandler, etc.? CONNER, BRENDAN (SBCSI) wrote: We have a managed bean representing the user with session scope that is filled out when the user successfully logs in by the

Re: User Management - advice needed.

2005-10-20 Thread Volker Weber
You can do FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal() in every bean, also at first page. Jeffrey Porter wrote: I've messed about and got my action method to make a call to a SessionBean. Which then looks up the current user via the SessionContext. The

Re: User Management - advice needed.

2005-10-20 Thread Werner Punz
In my last project I used a servlet filter for this case... worked exceptionally well. Marius Kreis wrote: so how do you control the authorization? do you insert a check into every single page? or via phaseListener, navigationHandler, etc.?

RE: User Management - advice needed.

2005-10-20 Thread Jeffrey Porter
PROTECTED] Sent: 20 October 2005 15:45 To: MyFaces Discussion Subject: Re: User Management - advice needed. You can do FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal( ) in every bean, also at first page. Jeffrey Porter wrote: I've messed about and got my action method

Re: User Management - advice needed.

2005-10-20 Thread Travis Reeder
PROTECTED]]Sent: 20 October 2005 15:45To: MyFaces DiscussionSubject: Re: User Management - advice needed. You can doFacesContext.getCurrentInstance().getExternalContext().getUserPrincipal()in every bean, also at first page.Jeffrey Porter wrote: I've messed about and got my action method to make a call