Use this <form name="formname"> <field property="employerIdentificationNumber" depends="minlength"> <arg0 key="formname.employerIdentificationNumber"/> <msg name="minlength" key="welcomeForm.employerIdentificationNumber.required" resource="true"/> </field> </form> And add to message.properties #formname.employerIdentificationNumber.required={0} - Please enter. Employer ID Number is required.
Chetan Pandey <[EMAIL PROTECTED]> wrote: I have a field in my form for which I am doing the following validation. Basically it has to be exactly 5 characters long. The following works. property="propertyVO.holidexCode" depends="minlength"> resource="false"/> minlength5 property="propertyVO.holidexCode" depends="maxlength"> resource="false"/> maxlength5 However, I want a message like "{0} only takes 5 characters" I cannot change errors.minlength/maxlength as I may want to use them as they come by default for other validations in future. Is their a way I can override the default messages for these two.. Thanks. CHetan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.