> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 01, 2004 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: Problem with validation using both minlength and maxlength on
> the same field
> 
> 
> validation.xml
> ...
> ...
>          <field
>            property="myField"
>            depends="minlength, maxlength, integer">
>            <arg0 key="sampleApp.myField.label"/>
>            <arg1 key="sampleApp.myField.minLen" name="minlength"  />

                One of these is not correct.. arg1 for both, probably confusing 
Validator.

>            <arg1 key="sampleApp.myField.maxLen" name="maxlength"  />

                
<var><var-name>minlength</var-name><var-value>3</var-value></var>
                
<var><var-name>maxlength</var-name><var-value>30</var-value></var>

>          </field>

        have you thought of intRange instead?  Probably closer to what you're 
looking for.  Error message would make more sense maybe.  Number must be fewer 
then X characters is odder then Number must be between X and XX.  Or maybe 
not...


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

Reply via email to