Hi,
for the various range validations, is it possible to specify greater than or less than ranges (ie, either no max or no min)?
if not, would this make a sensible enhancement?
At the moment for an integer > 0 I specify
<field property="id" depends="integer,intRange">
<arg key="com.codeczar.news.News.id.label" position="0"/>
<arg name="intRange" key="${var:min}" resource="false" position="1"/>
<arg name="intRange" key="${var:max}" resource="false" position="2"/>
<var>
<var-name>min</var-name>
<var-value>1</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>2147483647</var-value>
</var>
</field>would it be 'nicer' to be able to specify:
<field property="id" depends="integer,intRange">
<arg key="com.codeczar.news.News.id.label" position="0"/>
<arg name="intRange" key="${var:min}" resource="false" position="1"/>
<var>
<var-name>min</var-name>
<var-value>1</var-value>
</var>
</field>Also, this gives me two error messages if my value is greater than 2147483647 - firstly telling me that this is not an integer, although this makes sense to nerds like me, it might not make sense to an end user.
I have the option of excluding the integer depends but this then tells me that 'abcdef is not in the range 0 - 2147483647', where 'abcdef is not an integer' would be the better message
cheers Nathan -- Nathan Coast Managing Director Codeczar Ltd mob : (852) 9049 5581 tel : (852) 2834 8733 fax : (852) 2834 8755 web : http://www.codeczar.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

