MyFaces Extensions Validator
  1. MyFaces Extensions Validator
  2. EXTVAL-90

Allow map notation in the EL expression for the test infrastructure.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.3
    • Fix Version/s: 1.2.4
    • Component/s: None
    • Labels:
      None

      Description

      The reference Resolver features of x.x.4 will allow some basic Map usages in references. The mocks available in the test infrastructure doesn't handle them correctly for the moment.

      Following code fragment clarifies the problem (see also SupportForMapPropertyTest)

      createValueBinding(inputComponent1, "value", "#

      {testBean.mapProperty['Key']}

      ");

      inputComponent1.setSubmittedValue("value1");

      // This fails with a IllegalStateException thrown in ExtValMockValueExpression.getType
      //as he tries to find a getter for key property.
      inputComponent1.validate(facesContext);

      1. SupportForMapPropertyTest.java
        2 kB
        Rudy De Busscher
      2. EXTVAL-90.patch
        3 kB
        Rudy De Busscher

        Activity

        Hide
        Rudy De Busscher added a comment -

        Testcase that reproduces the problem

        Show
        Rudy De Busscher added a comment - Testcase that reproduces the problem

          People

          • Assignee:
            Unassigned
            Reporter:
            Rudy De Busscher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development