struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Boudrant <b...@yahoo.fr>
Subject Question about validator
Date Wed, 12 Mar 2003 12:38:36 GMT
Hi,

I want to check the maxlength & minlength with the validator BUT only if the field is
not empty,
how can I do this ?


			<field property="reference"
					depends="minlength,maxlength">
				<arg0 key="nomenclatureAchatForm.reference.displayname"/>
				<arg1 name="minlength" key="${var:minlength}" resource="false"/>
				<var>
					<var-name>minlength</var-name>
					<var-value>5</var-value>
				</var>
				<arg2 name="maxlength" key="${var:maxlength}" resource="false"/>
				<var>
					<var-name>maxlength</var-name>
					<var-value>5</var-value>
				</var>
			</field>

Thx,
-emmanuel

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran├žais !
Yahoo! Mail : http://fr.mail.yahoo.com

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


Mime
View raw message