You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/05/29 00:24:37 UTC
[jira] Resolved: (MYFACES-2740) MethodExpression wrapping of
vdl.retargetMethodExpression does not take into account #{cc} resolution
[ https://issues.apache.org/jira/browse/MYFACES-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-2740.
-------------------------------------
Fix Version/s: 2.0.1-SNAPSHOT
Resolution: Fixed
> MethodExpression wrapping of vdl.retargetMethodExpression does not take into account #{cc} resolution
> -----------------------------------------------------------------------------------------------------
>
> Key: MYFACES-2740
> URL: https://issues.apache.org/jira/browse/MYFACES-2740
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.0
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Fix For: 2.0.1-SNAPSHOT
>
>
> On vdl.retargetMethodExpression, it is done something like this to "retarget" methodExpressions:
> if (CompositeComponentELUtils.isCompositeComponentExpression(attributeExpressionString))
> {
> methodExpression = new ValueExpressionMethodExpression(attributeNameValueExpression);
> }
> This strategy causes problems when complex EL expressions are resolved.
> I think it is better to "unwrap" the original expression, trying to find LocationValueExpression wrappers and "rewrap" the method expression to be created with a LocationMethodExpression. In this way, complex EL expressions are resolved correctly.
> I did some tests and it works well. Minor fixes were included with this patch too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.