On 2/23/06, Hubert Rabago <[EMAIL PROTECTED]> wrote:
>
> A teammate of mine was looking at Shale's support for Commons
> Validator, and I noticed that the validation parameters are specified
> as tag attributes:
>
> <s:commonsValidator
>     type="floatRange"
>     min="10"
>     max="1000"
>     arg="#{messages['prompt.amount']}"
>     server="true"
>     client="true"/>
>
> This would, of course, limit the possible params that can be
> specified.  Can we change it to something like this instead?
>
> <s:commonsValidator
>     type="floatRange"
>     arg="#{messages['prompt.amount']}"
>     server="true"
>     client="true">
>     <s:validatorVar name="min" value="10"/>
>     <s:validatorVar name="max" value="1000"/>
> </s:commonsValidator>


This is definitely an idea worth exploring.  Could you please open a
Bugzilla RFE issue for it?

http://issues.apache.org/bugzilla/

Hubert


Craig

Reply via email to