Hi.
Exactly boy :).
2006/6/4, Scott Van Wart [EMAIL PROTECTED]:
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
: 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
Hi
As far as i remeber It works as a chain. Struts processes validators in
depends attribute from left to right.
If a validator fails (returns false) struts doesn't process the next one.
If you are thinking of creating custom validator remember that even if your
custom validator fails it doesn't
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,
I've been looking through guides and such online, but I'm not really
clear how the validations work. For example, the JavaDoc for
org.apache.struts.validator.FieldChecks.validateLong says it returns
true if valid, false otherwise., but if the checked value can be
converted to java.lang.Long,
5 matches
Mail list logo