Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-178

Support for optional validator constraints

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 5.0.15
    • None
    • None
    • None

    Description

      I have a validator called 'method' that takes an optional string constraint which defaults to a reasonable value based on the field name. As of 5.0.5 you could do:
      <t:textfield t:id="name" validate="method" />

      you have to do:
      <t:textfield t:id="name" validate="method=" />

      to make the parameter an empty string. otherwise you get an exception that you didn't specify the constraint. I need a way of specifying that this constraint can be optional so you can use it with the first method. Also, I'm not sure if being able to do the second method should be considered a bug since the constraint is required but the value is empty.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hagios17 Dan Adams
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: