playframework/playframework — pull request #1955 by jroper (2014-08-26 06:16:41+00:00)
Title: Class Validators errors are not reported in form.errors()

I`ve tested on such simple model and simple validator
Firma.java

package models.validators;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;

@Target({ ElementType.TYPE, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = FirmaValidator.class)
@play.data.Form.Display(name="constraint.firma")
@Documented
public @interface Firma
{
String message() default "Please enter correct data"";

Class[] groups() default {};

Class[] payload() default {};

}

FirmaValidator.java

package models.validators;
import models.Osoba;
import javax.validation.ConstraintValidator;
import play.libs.F;

public class FirmaValidator extends play.data.validation.Constraints.Validator