Hi!
Currently I'm using gwt-validation 2.1 with GWT 2.4 and Sencha GXT 3. I'm trying to validate simple pojo:
public class SimpleBean {
@NotEmpty
private String firstName;
@Size(min = 3, max = 32)
private String secondName;
@Size(min = 3, max = 32)
private String lastName;
@Past
private Date dob;
// getters and setters
}
Fields annotated with @Size and @Past working well, but when gwt-validation try execute validation on firstName (annotated with com.em.validation.client.constraints.NotEmpty) it's fall with
ValidationException("The ConstraintValidator of type " + key.getName() + " was not available as a constraint at code generation time.") in generated file com.em.validation.client.generated.factory.GeneratedConstraintValidatorFactory because there are no com.em.validation.client.validators.NotNullObjectValidator registered in this file.
Could you please explain what I'm doing wrong?
Thx