[jboss-user] [JBoss Portal] - Re: Obtaining user identity from PortalRuntimeContext?
dpegram
do-not-reply at jboss.com
Tue Nov 20 17:36:47 EST 2007
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!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106561#4106561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106561
More information about the jboss-user
mailing list