On 5/4/06, Mulligan, Scott H <[EMAIL PROTECTED]> wrote:
The validate javascript function that gets generated by the validator
stops processing once one of the validation routines finds an error. Is
there a way to override the "&&" with "&" so that I can get all errors
at once? If so, where would I do this?

   function validateSignIn(form) {

       if (bCancel)
     return true;
       else
      return validateMaxLength(form) && validateRequired(form) &&
validateMinLength(form);
  }

I searched the archives, but did not see any solutions to this. Any help
would be appreciated.

In the struts-config.xml you can set the "stopOnFirstError" property
to false....

 <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
   <set-property property="pathnames"
                             value="/WEB-INF/validator-rules.xml,
                                       /WEB-INF/validation.xml"/>
   <set-property property="stopOnFirstError" value="false"/>
 </plug-in>


Niall

Scott Mulligan

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

Reply via email to