It will just one type at a time:

Suppose you have 3 fields A,B and C

A depends="required,mask,date"
B depends="required,mask"
C depends="required,date"

Now user fills out the form and forgets to put A and B
User will see the message A and B missing
When user provides A, B and C but suppose A is not masked correctly
You will only see one message for A out of mask even if C is not a
correct date. 

So only the same kinds of validations will be alerted about together.

You can kind of see it from the JavaScript that is being generated for
your validation function. 

The function usually goes like this

  return validateDepends1 (form) && validateDepends2 (form) ....

if validateDepends1 (form)  is false js stops execution and all the
depends1 errors are displayed

HTH,
Alex.

> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin
> Sent: Saturday, July 26, 2003 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: Can Validator javascript show more than one error at a time?
> 
> Somehow Ted Husted was able to get the javascript to show more than
one
> error at a time in the javascript alert message.
> See screen shot on page 373 of Struts in Action.
> I'm using Struts 1.1 final and it seems the javascript won't support
that?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to