This content has been marked as final.
Show 1 reply
-
1. Re: Obtaining user identity from PortalRuntimeContext?
dpegram Nov 20, 2007 5:36 PM (in response to dpegram)I may be able to get the information I need another way.
Unfortunately, the following code fails because the FacesContext is always null.FacesContext context = FacesContext.getCurrentInstance(); PortletRequest request = (PortletRequest)context.getExternalContext().getRequest(); Principal authenticatedUser = request.getUserPrincipal();
This worked prior to modifying the application to run under the Portal.
Did I replace/omit a vital part of the configuration from faces-config.xml or web.xml?
Otherwise, the pages and portlets appear just fine.
Thanks in advance for any assistance!