Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-04 Thread Jakub Milkiewicz
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

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-04 Thread Martin Gainty
: 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

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-03 Thread Jakub Milkiewicz
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

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-03 Thread Scott Van Wart
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,

Validation 'depends' attribute order, and 'validwhen'

2006-06-02 Thread Scott Van Wart
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,