[
https://issues.jboss.org/browse/SEAMFACES-108?page=com.atlassian.jira.plu...
]
Dan Allen commented on SEAMFACES-108:
-------------------------------------
That's no different than some of the other producers we have. This is just a case
where we have to document that it should be injected as a method parameter (short-lived)
or using the Instance<UIViewRoot> SPI.
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