[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-108) Add producer for UIViewRoot

Brian Leathem (JIRA) jira-events at lists.jboss.org
Thu Sep 8 12:06:26 EDT 2011


    [ https://issues.jboss.org/browse/SEAMFACES-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627295#comment-12627295 ] 

Brian Leathem commented on SEAMFACES-108:
-----------------------------------------

I love working on Seam Faces!  Every time I look at something new, I learn more about CDI.
http://docs.jboss.org/cdi/api/1.0/javax/enterprise/inject/Instance.html

> Add producer for UIViewRoot
> ---------------------------
>
>                 Key: SEAMFACES-108
>                 URL: https://issues.jboss.org/browse/SEAMFACES-108
>             Project: Seam Faces
>          Issue Type: Feature Request
>          Components: CDI Integration
>    Affects Versions: 3.0.0.CR1
>            Reporter: Dan Allen
>            Priority: Minor
>
> Add producer for UIViewRoot so that it can be injected. It should be dependent-scoped as it may change at any time during the request lifecycle.
> Injected into an object:
> {code:java}
> @Inject Instance<UIViewRoot> viewRootProvider;
> {code}
> or into an observer:
> {code:java}
> public void beforeRender(@Observes @Before @RenderResponse PhaseEvent e, UIViewRoot viewRoot) {
>    ...
> }
> {code}

--
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