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/09/08 17:13:00 UTC

[jira] [Commented] (MYFACES-4151) When @FacesConfig is not present, EL resolution in managed beans should not be performed

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

Eduardo Breijo commented on MYFACES-4151:
-----------------------------------------

I don't see any logic on FacesScopeContextExtension that verifies the FacesConfig.Version

> When @FacesConfig is not present, EL resolution in managed beans should not be performed 
> -----------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4151
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4151
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>            Reporter: Eduardo Breijo
>            Priority: Minor
>
> According to the JSF 2.3 spec section 5.6.3 "CDI for EL Resolution" - When @FacesConfig annotation is present in any of the managed beans, the ImplicitObjectELResolver is not present in the chain, instead CDI is used to perform EL resolution. However, when @FacesConfig is not present, we are still using CDI to perform EL resolution in the managed beans. 
> On Mojarra, app does not start, throwing DeploymentExceptions similar to this: 
> org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type FacesContext with qualifiers @Default
>   at injection point [BackedAnnotatedField] @Inject private com.ibm.ws.jsf23.fat.beans.TestBean.facesContext
>   at com.ibm.ws.jsf23.fat.beans.TestBean.facesContext(TestBean.java:0)



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