validation « playframework « Java Enterprise Q&A





1. Howto write custom checks/validation for the play-framework    stackoverflow.com

I try to write checks for the play-framework and see two different possibilities. I described both and want to know if my understanding is correct (So it's more a ...

2. Own validator with incorrect message displayed    stackoverflow.com

I wrote my own Validation; The annotation :

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Constraint(checkWith = ImageCheck.class)
public @interface Image {
        String message() default ImageCheck.mes;
}
And the class :
public class ImageCheck extends AbstractAnnotationCheck<Image> ...

3. Play Framework: How to validate a subset of fields in an object?    stackoverflow.com

I have an User object that has many attributes. In my edit profile screen I'm displaying a subset of those attributes. In the corresponding controller action how can I validate only ...

4. play framework mandatory item    stackoverflow.com

Is it possible to automatically put a * before a required field label? In this example firstname is required (@Required in the model) and therefore a * should be shown after ...

5. Play's validation on numeric fields when user enters in alpha characters    stackoverflow.com

Using the Play! Framework, I have a field that requires the user to enter a numeric value greater than zero. In my controller, I have something like this:

public static void ...

6. Play framework: select and validation    stackoverflow.com

I use a register form with automatic validation provided by the play framework. This all works fine with simple input fields. But now i want to add a select (DropDown-List) for ...

7. Validation: check for uniqueness before saving    stackoverflow.com

I am developing a web app with Play Framework. My app has a User class, which in turn has a username and an email property. Pretty standard stuff. However... When a new ...

8. Domain object validation with Play! framework    stackoverflow.com

I want to validate a domain object without automatic parameter binding to restrict the properties that can be set by the client. The following class (example from Play! docs) ...

public ...

9. Complex POJO validation with PlayFramework    stackoverflow.com

Is there an elegant way to validate a POJO parameter with another parameter from the same POJO with PlayFramework ? I'm searching a solution which keep the Play error mechanism. Exemple : ...





10. Can Validation be used with parameters that are enhanced in the controller?    stackoverflow.com

I have a Website model, that has a @Required User owner property. This property gets filled inside the controller method. However, validation is checked upon entering the controller method, so it ...