This is my form and the generated Javascript, please note the position of the * integer * validator. Most of the validators are custom, except the * integer * validator, and for some reason, it puts it at the END of the generated validator Javascript.
Thanks, a.m. <form name="incMortPayForm"> <field property="mortNumber" depends="reqXDefault,integer"> ........................ </field> <field property="newAmount" depends="xor,amountNoRequired"> ........................ </field> <field property="pcntIncrease" depends="xor,pcntAmount"> ........................ </field> <field property="coCardNumber" depends="condRequired,condMask"> ........................ </field> <field property="coPassword" depends="condRequired"> ........................ </field> <field property="guarCardNumber" depends="condRequired,condMask"> ........................ </field> <field property="guarPassword" depends="condRequired"> ........................ </field> </form> <script type="text/javascript" language="Javascript1.1"> <!-- Begin var bCancel = false; function validateIncMortPayForm(form) { if (bCancel) return true; else return validateReqXDefault(form) && validateXOR(form) && validateAmount(form) && validatePcntAmount(form) && validateCondRequired(form) && validateCondMask(form) && validateInteger(form); } "Yansheng Lin" <[EMAIL PROTECTED]> 25/07/2003 03:34 PM Please respond to "Struts Users Mailing List" To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc: Subject: RE: validation sequence On client side, if your javascript is something like: return validateA(form) && validateMask(form) && validateB(form) than the execution sequence will be from left to right. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 25, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: validation sequence Hi there, I was wondering, does anyone know in which sequence this kind of validation will happen - depends="acustomvalidation,mask,bcustomvalidation" so, will it be alphabetic as in: acustomvalidation,bcustomvalidation,mask or acustomvalidation,mask,bcustomvalidation or random?? Thanks, Aleksandar. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]