Uploaded image for project: 'MyFaces Extensions Validator'
  1. MyFaces Extensions Validator
  2. EXTVAL-90

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.3
    • 1.2.4
    • None
    • 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);

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            rdebusscher Rudy De Busscher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: