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


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.

Reply via email to