[ https://issues.apache.org/jira/browse/MYFACES-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789267#comment-13789267 ]
Dora Rajappan commented on MYFACES-3786: ---------------------------------------- CDI is very difficult for customPartialViewContextFactory since the FactoryFinder creates the instance from contructor given below. Constructor<?> delegationConstructor = implClass.getConstructor(new Class[] { interfaceClass }); // impl class supports decorator pattern, try { // create new decorator wrapping current current = delegationConstructor.newInstance(new Object[] { current }); What happens in method getContextualReference(BeanManager beanManager, Class<T> type) of ExternalArtifactResolver class beanManager.getBeans for type class guess.RenderExpressionPartialViewContextFactoryImpl return empty set. I tried with no argument constructor for RenderExpressionPartialViewContectFactoryImpl and cdi works. But its of no consequence. > 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: cdiELResolver.patch, cdiELresolverWeb.zip, > cdiELResolver.zip, cdipackage.patch, cdiPartialViewContext.war, > cdiPartialViewContext.zip, cdi.patch, cdiValidatorSource.zip, cdiValidator.war > > > 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)