Hi Aaron,

As you say, you'll have to remove the @Validate annotation and validate all
three in the validation method.
Stripes executes validations in a very specific order -
http://www.stripesframework.org/display/stripes/Validation+Reference#ValidationReference-ValidationProcessingFlowand
will not execute any further validations until all the
@Validate(required=true) are passing.

Cheers,

--
Samuel Santos
http://www.samaxes.com/


On Wed, Aug 15, 2012 at 6:05 AM, Iwao AVE! <haraw...@gmail.com> wrote:

> Hi,
>
> when = ValidationState.ALWAYS should work as you expect.
> Is your validation method public?
>
> Regards,
> Iwao
>
> 2012/8/15 Aaron Stromas <passog...@gmail.com>:
>
> > Hello,
> >
> > I have three attributes that I'm validating. One of them is annotated
> with
> > @Validate whereas the other two are validated in the method annotated
> with
> > @ValidationMethod. All three mus be provided value, however, if I don't
> > enter the value, only the attribute which is annotated is validated and
> it
> > seems that the validation method does not get a chance to execute.
> > I would like to have all three validated before errors are reported.
> > The validation method has the when=ValidationState.ALWAYS. I even tried
> the
> > set the Stripes filter parameter ValidationInvokeWhenErrorsExist to true
> to
> > no avail.
> > I have a feeling that I would have to remove the @Validate annotation and
> > validate all three in the validation method. Is that true or can I
> somehow
> > combine both and have them all execute?
> > Thanks,
> >
> > --
> > Aaron Stromas
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to