struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakub Milkiewicz" <jmilkiew...@gmail.com>
Subject Re: Validation 'depends' attribute order, and 'validwhen'
Date Sun, 04 Jun 2006 14:35:46 GMT
Hi.
Exactly boy :).


2006/6/4, Scott Van Wart <scott@indosoft.ca>:
>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message