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
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(
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
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