You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2007/11/05 14:51:05 UTC
[WW-2292] Validation annotations v. ActionSupport
https://issues.apache.org/struts/browse/WW-2292
I'm assuming what's happening is that ActionSupport's
validation is enough to use field validator
annotations even if the action doesn't have an
explicit @Validation() annotation (or something else
that leads to the same result).
WW-2292 basically asks if a lack of @Validation()
should mean no validation based on annotations even if
the class extends ActionSupport.
Anyone?
Thanks,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [WW-2292] Validation annotations v. ActionSupport
Posted by Ted Husted <hu...@apache.org>.
I would say that the behavior described is the expected behavior.
AFAIK, the @Validation() annotation is just a bit of red-tape, and if
we didn't need it, it wouldn't be there at all. Essentially, the
@Validation is inherited alongwith the validations. There's another
semantic, @SkipValidation, that is intended to suppress inherited
validations. (Though, it may still not work quite right.)
-Ted.
On Nov 5, 2007 8:51 AM, Dave Newton <ne...@yahoo.com> wrote:
> https://issues.apache.org/struts/browse/WW-2292
>
> I'm assuming what's happening is that ActionSupport's
> validation is enough to use field validator
> annotations even if the action doesn't have an
> explicit @Validation() annotation (or something else
> that leads to the same result).
>
> WW-2292 basically asks if a lack of @Validation()
> should mean no validation based on annotations even if
> the class extends ActionSupport.
>
> Anyone?
>
> Thanks,
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
HTH, Ted <http://www.husted.com/ted/blog/>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org