[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2461) Session scoped Seam component calls PortalIdentity.instance().getPrincipal() which returns null.

Gary Hu (JIRA) jira-events at lists.jboss.org
Wed Oct 21 16:52:05 EDT 2009


Session scoped Seam component calls PortalIdentity.instance().getPrincipal() which returns null.
------------------------------------------------------------------------------------------------

                 Key: JBPORTAL-2461
                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2461
             Project: JBoss Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Gary Hu


In a session scoped Seam component the following call returns null value:

  PortalIdentity.instance().getPrincipal();

The further investigation shows that the above call is dependent upon the availability of FacesContext. However,  FacesContext.getCurrentInstance() returns null in this case.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list