Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2740

MethodExpression wrapping of vdl.retargetMethodExpression does not take into account #{cc} resolution

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1
    • JSR-314
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              lu4242 Leonardo Uribe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: