[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-8748) Support @Inject FacesContext

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Apr 18 20:31:33 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov resolved JBIDE-8748.
-----------------------------------

    Resolution: Rejected


Ok. This bean is implemented via standard producer
{code}
public class FacesContextProducer {
    @Produces
    @RequestScoped
    public FacesContext getFacesContext() {
        FacesContext ctx = FacesContext.getCurrentInstance();
        if (ctx == null) {
            throw new ContextNotActiveException("FacesContext is not active");
        }
        return ctx;
    }
}
{code}

So we already support it.

> Support @Inject FacesContext
> ----------------------------
>
>                 Key: JBIDE-8748
>                 URL: https://issues.jboss.org/browse/JBIDE-8748
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: cdi (jsr-299)
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>              Labels: new_and_noteworthy
>             Fix For: 3.3.x
>
>
> Seam Faces provides a built-in bean for javax.faces.context.FacesContext
> So @Inject FacesContext context; should be resolvable in JBT too.
> See http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html/artifacts.html#injectable_artifacts

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


More information about the jbosstools-issues mailing list