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

Add the EmptyValueAwareValidationStrategy annotation to the Length and Pattern Annotations

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 1.2.3, 2.0.3, 1.1.3
    • Component/s: Property Validation
    • Labels:
      None

      Description

      Adding the EmptyValueAwareValidationStrategy allows in JSF 2.0 that Length and Pattern validations are triggered (with the javax.faces.VALIDATE_EMPTY_FIELDS parameter set).
      They will cause a validation error with an empty string (Length annotation with minimum set or Pattern) so the Required annotation is no longer needed.

      Tested it out with ExtVal 2.0.3-SNAPSHOT and Myfaces 2.0.0-SNAPHOT (of 21/01) and it works as expected.

        Activity

        Gerhard Petracek made changes -
        Affects Version/s 1.1.3 [ 12313875 ]
        Affects Version/s 1.2.3 [ 12313876 ]
        Affects Version/s 2.0.3 [ 12314098 ]
        Gerhard Petracek made changes -
        Fix Version/s 1.1.3 [ 12313875 ]
        Fix Version/s 2.0.3 [ 12314098 ]
        Fix Version/s 1.2.3 [ 12313876 ]
        Gerhard Petracek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gerhard Petracek made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Rudy De Busscher made changes -
        Field Original Value New Value
        Component/s Property Validation [ 12312543 ]
        Component/s Bean Validation [ 12312975 ]
        Rudy De Busscher created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development