You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Eduardo Breijo (JIRA)" <de...@myfaces.apache.org> on 2017/07/20 15:38:00 UTC

[jira] [Commented] (MYFACES-4126) Implicit objects flowScope and view cannot be injected using CDI

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

Eduardo Breijo commented on MYFACES-4126:
-----------------------------------------

If no objections in the next few days, I will commit this patch.

> Implicit objects flowScope and view cannot be injected using CDI
> ----------------------------------------------------------------
>
>                 Key: MYFACES-4126
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4126
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>            Reporter: Eduardo Breijo
>         Attachments: MYFACES-4126.patch
>
>
> The implicit objects {code:java}#{flowScope}{code} annotated @FlowMap and {code:java}#{view}{code} which results in UIViewRoot cannot be injected using CDI.
> For example:
> @Inject
> private UIViewRoot viewRoot;
> @Inject
> @FlowMap
> private Map<Object, Object> flowMap;
> The above results in the following errors respectively:
> An exception occurred while starting the application ELImplicitObjectsViaCDI. The exception message was: com.ibm.ws.container.service.state.StateChangeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type UIViewRoot with qualifiers @Default
>   at injection point [BackedAnnotatedField] @Inject private com.ibm.ws.jsf23.fat.beans.ELImplicitObjectBean.viewRoot
> An exception occurred while starting the application ELImplicitObjectsViaCDI. The exception message was: com.ibm.ws.container.service.state.StateChangeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type Map<Object, Object> with qualifiers @FlowMap
>   at injection point [BackedAnnotatedField] @Inject @FlowMap private com.ibm.ws.jsf23.fat.beans.ELImplicitObjectBean.flowMap
> A patch is provided.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)