[seam-issues] [JBoss JIRA] Created: (SEAMFACES-94) Add @Named to producer for ExternalContext

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri Mar 4 13:50:45 EST 2011


Add @Named to producer for ExternalContext
------------------------------------------

                 Key: SEAMFACES-94
                 URL: https://issues.jboss.org/browse/SEAMFACES-94
             Project: Seam Faces
          Issue Type: Enhancement
    Affects Versions: 3.0.0.CR1
            Reporter: Dan Allen
             Fix For: 3.0.0.Final


JSF exposes facesContext as an implicit EL variable that references the current FacesContext. However, no such implicit EL variable is available for ExternalContext. There is useful information in the ExternalContext that is often needed in the UI, particular during development. Thus, we should expose this implicit variable by adding @Named to the producer for ExternalContext.

@Named
@Produces
@RequestScoped
public ExternalContext getExternalContext(final FacesContext context) {
    return context.getExternalContext();
}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list