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. EXTVAL-90.patch
        3 kB
        Rudy De Busscher
      2. SupportForMapPropertyTest.java
        2 kB
        Rudy De Busscher

        Activity

        Rudy De Busscher created issue -
        Hide
        Rudy De Busscher added a comment -

        Testcase that reproduces the problem

        Show
        Rudy De Busscher added a comment - Testcase that reproduces the problem
        Rudy De Busscher made changes -
        Field Original Value New Value
        Attachment SupportForMapPropertyTest.java [ 12441287 ]
        Rudy De Busscher made changes -
        Attachment EXTVAL-90.patch [ 12441288 ]
        Rudy De Busscher made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Gerhard Petracek made changes -
        Affects Version/s 1.1.3 [ 12313875 ]
        Affects Version/s 2.0.3 [ 12314098 ]
        Gerhard Petracek made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 1.2.4-SNAPSHOT [ 12314835 ]
        Resolution Fixed [ 1 ]
        Gerhard Petracek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development