[ https://issues.apache.org/jira/browse/MYFACES-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13793495#comment-13793495 ]
Leonardo Uribe commented on MYFACES-3786: ----------------------------------------- I have found a code in org.apache.myfaces.spi.impl.AllAnnotationInjectionProvider . It seems this provider is activated when javax.ejb.EJB is detected and no specific container provider has been found. It has a // TODO @EJBs on the top. If that so the code should be trivial, just add something like this: if (field.isAnnotationPresent(EJB.class)) { EJB annotation = field.getAnnotation(EJB.class); lookupFieldResource(context, instance, field, calculateBeanName(instance.getClass().getName())); } Am I right? Maybe this should be fixed for LifecycleProvider too. In that case, this is a new bug, so I suppose it is better to close this issue again and raise a new one, because the fix can be done for 2.0.x, 2.1.x and 2.2.x (even for 1.2.x) > 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 > 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)