Re: Validation Annotations

2007-04-09 Thread Antony Stubbs
I have the same issue. atm I send everything to !input which is by default excluded from validation. But try looking at something like this in your struts.xml: edit,create I haven't tried it yet, not quite sure how it works. You can see here that by default, input, back and ca

Re: Validation Annotations

2007-01-08 Thread André Faria
I tried to validate only the method save, so I puted the annotations on the top of the save method signature, but when I called execute method the validation erros appered. André Faria Laurie Harper escreveu: I haven't used this, but looking at the last example in the documentation it looks

Re: Validation Annotations

2007-01-08 Thread Laurie Harper
I haven't used this, but looking at the last example in the documentation it looks like there are two types of field-level annotation: property accessor annotations and action method annotations. I would guess that validations specified through property accessor annotations would always fire, w

Re: Validation Annotations

2007-01-08 Thread André Faria
Yes, but thats didnt works... If you specify the annotations on the method save for example... The validation roles will be apllyied for the others methods too. I am running Struts 2.0.3 with xWork 2.0.0 (06/01/2007)... Thank's André Faria cilquirm escreveu: According to http://struts.apache

Re: Validation Annotations

2007-01-08 Thread cilquirm
According to http://struts.apache.org/2.x/docs/validation-annotation.html you can specify annotations at the method level. André Faria-3 wrote: > > Hi People!!! > > Is there a way to use Validation Annotations only for a method or always > for the action... > > Example, if I have a action

Re: Validation Annotations

2007-01-08 Thread André Faria
I have the following problem: The methods execute() and list() must not be validated by the save method rule... I have differentes validation rules for each method, but when I call the action, the interceptor tries to validate the input before call execute method. How can I resolve this?