Tapestry
  1. Tapestry
  2. TAPESTRY-697

Add getters for validators properties.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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 .

        Activity

        Hide
        Michel D. added a comment -

        Priority should be rather trivial... Oh well, can't find way to edit issue after creating.

        Show
        Michel D. added a comment - Priority should be rather trivial... Oh well, can't find way to edit issue after creating.
        Hide
        Jesse Kuhnert added a comment -

        Sounds good to me.

        Show
        Jesse Kuhnert added a comment - Sounds good to me.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development