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

Leonardo Uribe commented on MYFACES-3786:
-----------------------------------------

Thanks Gerhard for take a look into this. 

Thinking more about this, maybe it is a good idea to just give priority to CDI 
InjectionProvider and fallback to the web server injection and if not found put 
the dummy one. In other words, if CDI is available use CDI injection provider 
(is delegation pattern over the injection provider valid to isolate the CDI 
api? in theory a classnotfoundexception is thrown on the injection factory and 
by that effect other injection providers are scanned). The big question is if 
CDI is properly integrated, does the CDI injection handles annotations like 
@EJB and others that are not part of CDI? In theory and according to 
InjectionTarget javadoc it should be, but I have not tested it yet. 

Remember one requeriment we have for this stuff is allow other bean containers 
like Spring to hook MyFaces 2.2.

> 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: Gerhard Petracek
>             Fix For: 2.2.0
>
>         Attachments: cdiELresolverWeb.zip, cdiELResolver.zip, 
> cdiPartialViewContext.war, cdiPartialViewContext.zip, cdi.patch, 
> cdiphaselistener1.patch, cdiphaselistener2.patch, cdiValidatorSource.zip, 
> cdiValidator.war, MYFACES-3786-1.patch, MYFACES-3786-2.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