[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-108) Add producer for UIViewRoot
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Sep 7 01:53:26 EDT 2011
[ https://issues.jboss.org/browse/SEAMFACES-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626672#comment-12626672 ]
Brian Leathem commented on SEAMFACES-108:
-----------------------------------------
This seems dangerous to me, as Injecting a dependent-scoped UIViewRoot into an application-scoped or session-scoped bean would mean that the injected UIViewRoot would quickly become stale.
> 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