Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-697

Add getters for validators properties.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1.2
    • Framework
    • None
    • ANy

    Description

      Currently validators have only setters. Eg. org.apache.tapestry.form.validator.Max validator has setMax() method, but no getMax(). My current task is implement ValidationDelegate with generic error validation messages. For example, if some field has too less characters proper message would be "Field value should be at least

      {0} chars long" where {0}

      should be replaced by min property of attached Min validator. But since there is no Min.getMin() method, I'm busted .

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            micheld Michel D.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: