There's a setting that you can change, but when you do, you lose
inherited property validations.

 * https://issues.apache.org/struts/browse/WW-2191

So, it's still not an optimal situation. :(

Ideally, we should be able to have per-method validations and inherit
methods placed on properties.

Of course, if you use one-action-method per Action-class, then all the
annotations work just fine.

-Ted.

On Nov 6, 2007 6:51 AM, Martin Gilday <[EMAIL PROTECTED]> wrote:
> Thanks.  Is this not a severe limitation of the annotation version if it
> is more limited than the xml version?
>
>
>
> ----- Original message -----
> From: "Fátima Silveira" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Mon, 5 Nov 2007 17:58:32 +0100
> Subject: Re: Annotation Validation, per method?
>
> i dont know to use anotation but with xml is
> ClassName-actionAlias_method-
> validation.xml
>
> On 11/5/07, Martin Gilday <[EMAIL PROTECTED]> wrote:
> >
> > Can you have annotation validation per method?  I have put @Validations
> > on both my display and update methods (display shows the record from
> > input), but all of the validation seems to be run at once.  Can you
> > achieve this with xml or annotation validation, or am I back to
> > validateInput methods?
> >
> > Thanks,
> > Martin.
> >
> > ---------------------------------------------------------------------
> > 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]
>
>



-- 
HTH, Ted <http://www.husted.com/ted/blog/>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to