You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ni...@accenture.com on 2004/05/03 17:06:10 UTC

Validator execution-order, all at once possible?

http://marc.theaimsgroup.com/?t=105902599300002&r=1&w=2

Hi folks, 

I got stuck on a problem discussed earlier in this list (@see link
above).
Hope this hasn't been answered elsewhere - it was the only thing I could
find.

Forms seem to get validated in a certain order. First, all required
fields are checked. Only after passing all required checks is other
validation performed. Correct?

Suppose you have a field "name" and a field "age". Both a required and
age also has integer checking applied. If user leaves "name" blank and
enters bogus values (non-int values) in age, validation will complain
only about name being required - not age being invalid. Only after name
is filled, integer validation complains.

I would like to see all applicable error messages at once. Is that a
configurable option? Work-arounds?

Thanx
Nils




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

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


Re: Validator execution-order, all at once possible?

Posted by Susan Bradeen <Su...@softlanding.com>.
nils.mueller@accenture.com wrote on 05/03/2004 11:06:10 AM:

> 
> http://marc.theaimsgroup.com/?t=105902599300002&r=1&w=2
> 
> Hi folks, 
> 
> I got stuck on a problem discussed earlier in this list (@see link
> above).
> Hope this hasn't been answered elsewhere - it was the only thing I could
> find.
> 
> Forms seem to get validated in a certain order. First, all required
> fields are checked. Only after passing all required checks is other
> validation performed. Correct?
> 
> Suppose you have a field "name" and a field "age". Both a required and
> age also has integer checking applied. If user leaves "name" blank and
> enters bogus values (non-int values) in age, validation will complain
> only about name being required - not age being invalid. Only after name
> is filled, integer validation complains.
> 
> I would like to see all applicable error messages at once. Is that a
> configurable option? Work-arounds?
> 

Nils, 

Using strictly server-side validation (not the client-side JavaScript 
validations), this can be done. 

Susan Bradeen


> Thanx
> Nils
> 
> 
> 
> 
> This message is for the designated recipient only and may contain 
> privileged, proprietary, or otherwise private information.  If you 
> have received it in error, please notify the sender immediately and 
> delete the original.  Any other use of the email by you is prohibited.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


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