Re: [Resteasy-users] validation of method parameters

2015-03-14 Thread Ron Sigal
Hi Dave J, You can validate the size of each element of a List by writing your own validation constraint. See the attached TestJunk program. Note that either @Form or @BeanParam would work. @Form is specific to Resteasy. -Ron package org.jboss.resteasy.test.validation.junk; import static

Re: [Resteasy-users] validation of method parameters

2015-02-23 Thread Dave J
Hi Savvas, Thank you for your response; I did try it the way you suggested, and you are right: the params are bound to the ArrayList. What I found was that application of the @Size annotation as below, imposes the constraint that the length of the list be no greater than the specified max. @Size(

Re: [Resteasy-users] validation of method parameters

2015-02-21 Thread Savvas Andreas Moysidis
Hi Dave, Not really sure why the bean validation stuff doesn't work but in order to bind form params you probably need to configure your resource method and binding class in a different way. Try the following: @GET public resourceMethod(@Valid @*BeanParam* MyParams params) { ... } public class

[Resteasy-users] validation of method parameters

2015-02-19 Thread Dave J
Hello, After some nontrivial research I thought I would try this list in the hopes more expert users could help me figure out where I am going wrong. I am using RESTeasy 3.0.9. I am trying to affect validation of a parameter coming in on the URL for a GET request. I use a class to aggregate valid