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

Add getters for validators properties.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: