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

@RequiredIf should be aware of boolean-values as target

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1, 1.2.2, 1.1.1, 1.1.2
    • Fix Version/s: 1.2.3, 2.0.3, 1.1.3
    • Component/s: Property Validation
    • Labels:
      None

      Description

      target value is Boolean#TRUE and RequiredIfType is not_empty -> source is required
      target value is Boolean#FALSE and RequiredIfType is not_empty -> source is not required

      target value is Boolean#FALSE and RequiredIfType is empty -> source is required
      target value is Boolean#TRUE and RequiredIfType is empty -> source is not required

      use-case details:
      http://www.mail-archive.com/users@myfaces.apache.org/msg54272.html

        Activity

        Gerhard Petracek created issue -
        Gerhard Petracek made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.3-SNAPSHOT [ 12313876 ]
        Fix Version/s 2.0.3-SNAPSHOT [ 12314098 ]
        Fix Version/s 1.1.3-SNAPSHOT [ 12313875 ]
        Resolution Fixed [ 1 ]
        Gerhard Petracek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Gerhard Petracek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development