Hello,

I am trying to validate a form using gwt-validation but have not been
having any success validating the email field of a POJO.  The field is
annotated as follows:

        @NotNull
        @Pattern(regexp = ".+@.+\\.[a-z]+")
        private String email;

Whenever Pattern is annotated to the above code, it fails after the
following line that I modeled after Gwt_validation_sample:

        Set<ConstraintViolation<Email>> violations =
validator.validate(email);

I have added the following JARs to the classpath:

        dom4j-1.6.1
        freemarker-gae-2.3.18
        guava-r09
        gwt-validation-2.0-preview-r199
        javassist
        reflections-0.9.5-RC2
        reflections-0.9.5-RC2.one
        slf4j-api-1.6.1
        validation-api-1.0.0.GA-sources
        validation-api-1.0.0.GA

I am not sure if they are all required.

Thank you in advance for any help,

Orville

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to