[ 
https://issues.apache.org/jira/browse/MYFACES-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13792738#comment-13792738
 ] 

Dora Rajappan commented on MYFACES-3786:
----------------------------------------

jsf2.2 Spec says "JSF Implementations that are running as a part of Java EE 5 
(or later) must allow managed bean implementations to use
the annotations specified in section 14.5 of the Servlet 2.5 Specification to 
allow the container to inject references to
container managed resources into a managed bean instance before it is made 
accessible to the JSF application. Only
beans declared to be in request, session, or application scope are eligible for 
resource injection.
In addition to managed beans being injectable in this manner, the following JSF 
artifacts are also injectable."

Container probably can never inject a constructor created instance (ie al teast 
all custom factories) in the manner ManagedBeans are injected. In that sense 
cdi api library cannot be optional for jsf if it wants enable cdi for jsf 
artifacts.



> Web Container injection support should be provided for additional lifecycle 
> artifacts (not just managed beans)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3786
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3786
>             Project: MyFaces Core
>          Issue Type: Task
>          Components: JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>         Attachments: cdiELresolverWeb.zip, cdiELResolver.zip, 
> cdiPartialViewContext.war, cdiPartialViewContext.zip, cdi.patch, 
> cdiphaselistener1.patch, cdiphaselistener2.patch, cdiValidatorSource.zip, 
> cdiValidator.war, MYFACES-3786-1.patch
>
>
>  This issue is all about how to inject beans into jsf artifacts.
> See JSF 2.2 section 5.4.1
> The problem here is in some point we need to give the control to the 
> underlying environment to inject beans into the artifacts, but we don't know 
> much about how to properly do it, so we need to try with examples.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to