FaceletVLD.retargetMethodExpressions should preserve EL VariableMapper and
FunctionMapper
-----------------------------------------------------------------------------------------
Key: MYFACES-2875
URL: https://issues.apache.org/jira/browse/MYFACES-2875
Project: MyFaces Core
Issue Type: Bug
Components: JSR-252
Affects Versions: 2.0.2-SNAPSHOT
Environment: myfaces current trunk
Reporter: Martin Kočí
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.retargetMethodExpressions
calls facesContext.getELContext() but should use FaceletContext instead to
preserve EL variable and function mapping. Consider this example:
<ui:param
name="localBean"
value="#{very.long.path.to.a.bean.in.el}" />
<a:niceCompositeComponent customMethod="#{localBean.method}" >
will not work but
customMethod="#{very.long.path.to.a.bean.in.el.method} will.
This can be easily fixed by using ELContext elContext = (ELContext)
context.getAttributes().get(FaceletContext.FACELET_CONTEXT_KEY);
instead of facesContext.getELContext().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.