Scott-
Isnt that an HTTP convention for return values from action..more specifically..

return false which indicates stop processing
return true  which indicates processing completed succcessfully

???

Merci,
Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Scott Van Wart" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Saturday, June 03, 2006 6:12 PM
Subject: Re: Validation 'depends' attribute order, and 'validwhen'


Jakub Milkiewicz wrote:
If you are thinking of creating custom validator remember that even if your custom validator fails it doesn't mean that your form is invalid! You must
remember to add ActionError/ActionMessage to ActionErrors/ActionMessages
passed as a parameter to yor validator.

Wow, thanks for pointing this out, I hadn't realized that. So if I want to stop processing validators in the chain, but still consider the form valid, I just return Boolean.FALSE in my plugin validator, but don't put anything into the passed ActionMessages... thanks for the tips!

- Scott

---------------------------------------------------------------------
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