Re: T5 + Acegi .. how to get user on Page?
Cool it helps thx. m HugoPalma wrote: > > You can get the logged user like this: > > @Inject > private RequestGlobals requestGlobals; > ... > ... > requestGlobals.getHTTPServletRequest().getUserPrincipal(); > > Then if you need to get more information about the user you just inject > the UserDetailsService into you component / page and use it to retrieve > whatever information you need. > > spamglik wrote: >> HI >> >> I have a problem accesing logged in user on a page. I tried to use ASO >> but >> have no idea how to create ASO in UserDetailService implementation. >> >> I saw some previous disscussions on forum but still it doesn't ring a >> bell. >> >> Maybe somebody have some example? or any tips? >> >> >> kind regards >> Mateusz >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5-%2B-Acegi-..-how-to-get-user-on-Page--tp19685415p19685660.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 + Acegi .. how to get user on Page?
You can get the logged user like this: @Inject private RequestGlobals requestGlobals; ... ... requestGlobals.getHTTPServletRequest().getUserPrincipal(); Then if you need to get more information about the user you just inject the UserDetailsService into you component / page and use it to retrieve whatever information you need. spamglik wrote: HI I have a problem accesing logged in user on a page. I tried to use ASO but have no idea how to create ASO in UserDetailService implementation. I saw some previous disscussions on forum but still it doesn't ring a bell. Maybe somebody have some example? or any tips? kind regards Mateusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 + Acegi .. how to get user on Page?
HI I have a problem accesing logged in user on a page. I tried to use ASO but have no idea how to create ASO in UserDetailService implementation. I saw some previous disscussions on forum but still it doesn't ring a bell. Maybe somebody have some example? or any tips? kind regards Mateusz -- View this message in context: http://www.nabble.com/T5-%2B-Acegi-..-how-to-get-user-on-Page--tp19685415p19685415.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]