You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Larry Zappeterrini <La...@SanchezProjects.com> on 2003/03/05 21:37:37 UTC

RE: Problems with ValidatorForm: validate is being called when it shouldn't be...

There are two approaches to solving this problem. The first is to create two
separate action mappings. One for the display of the form and the other for
the form to submit to. Only put validation of the mapping that receives the
submission. The second solution is to use a DispatchAction. This allows you
to have two steps in the mapping. The first step is to present the blank
form, the second step is to process the form submission. Only validate the
step where the submission occurs. I usually prefer the second method.

Cheers,
Larry

-----Original Message-----
From: Ruud Steeghs [mailto:ruudsteeghs@yahoo.com]
Sent: Tuesday, March 04, 2003 6:02 AM
To: struts-user@jakarta.apache.org
Subject: Problems with ValidatorForm: validate is being called when it
shouldn't be...


There's a strange situation regarding to the
ValidatorForm.

I want to display an empty Form (e.g. for a new
functionality), but all validation rules have already
fired.
I don't think this was the case using a regular
ActionForm, however with ValidatorForm all fields are
being validated before they are being displayed!

Anyone any idea how to solve this problem?

Ruud.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


*************************************************************************** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*************************************************************************** 



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