Then use doubleRange:).

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin
Sent: July 24, 2003 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Validator range server-side check assumes Integer?


I want to check that it's within range and also a double.
With or without the double it still tries to validate it as an integer.  I
suspect intRange will continue to do that.
"Yansheng Lin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Try to use 'intRange' instead of 'range'. 'range' is deprecated.
>
> Also if it's a int, why there is a 'double' in depends?
>
>
>
>
> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin
> Sent: July 24, 2003 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: Validator range server-side check assumes Integer?
>
>
> I'm validating a BigDecimal (money) form field and when I put a range
> validation on, it assumes that the data type must be integer.
> The javascript is okay but the server-side validation checks for integer:
>
> <field property="feeAmount" depends="range,double">
>
> <arg0 key="MCSPFeeDescTOLabel.feeAmount" />
>
> <arg1 name="range" key="${var:min}" resource="false" />
>
> <arg2 name="range" key="${var:max}" resource="false" />
>
> <var>
>
> <var-name>min</var-name>
>
> <var-value>5</var-value>
>
> </var>
>
> <var>
>
> <var-name>max</var-name>
>
> <var-value>100</var-value>
>
> </var>
>
>
>
> yields an error message of
>
> fee amount must be an integer
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to