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:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 6:02 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


*************************************************************************** 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to