Cool, thanks. Is the userManager object available from inside the velocity layout templates though or is there a handy way to get a reference?
Cheers, Iain -----Original Message----- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: 12 September 2006 20:12 To: Jetspeed Users List Subject: Re: Custom user attributes in a layout decorator O'Connell, Iain wrote: > Hi folks, > > I'm trying to figure out how to access custom user attributes that I set in > the user admin portlet from a the header of a layout decorator and I've > tried a few different possibilities but nothing seems to be working for me > and I was hoping that somebody might have a pointer for me on where I can > get this information if you've done this before. From a portlet, just use the portlet api: Map userInfo = (Map)request.getAttribute(PortletRequest.USER_INFO); If you want to access them via the jetspeed user manager component: User user = userManager.getUser(userName); user.getUserAttributes(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
