struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubert Rabago" <hrab...@gmail.com>
Subject [shale] Commons Validation support
Date Thu, 23 Feb 2006 14:06:18 GMT
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>

Hubert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message