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

@RequiredIf should be aware of boolean-values as target

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.1, 1.2.2, 1.1.1, 1.1.2
    • 1.2.3, 2.0.3, 1.1.3
    • Property Validation
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: