Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-889

ValidatorWrapper causes filtering of multiple custom validators in ValidatorTagHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • JSF-Module
    • None
    • JSF 2.2 / Wildfly 8.1

    Description

      InjectionAwareApplicationWrapper wraps custom validators.

      In ValidatorTagHandlerDelegateImpl the check for class equality causes a unique constraint on validators, so effectively filtering all "wrapped" validators but the first:

      for (Validator validator : validators) {
      if (validator.getClass().equals(v.getClass()))

      { found = true; break; }

      }

      if (!found)

      { evh.addValidator(v); }

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            shadogray Thomas Frühbeck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: