You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2011/08/12 00:16:28 UTC

[jira] [Closed] (TAP5-178) Support for optional validator constraints

     [ https://issues.apache.org/jira/browse/TAP5-178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti closed TAP5-178.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s: 5.3

Please open a new one for 5.3 if this still applicable

> Support for optional validator constraints
> ------------------------------------------
>
>                 Key: TAP5-178
>                 URL: https://issues.apache.org/jira/browse/TAP5-178
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Dan Adams
>             Fix For: 5.3
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira