Hi.

I am trying to use GWT Bean Validation but I can't find in the docs wich 
ones are the supported annotations in client side and server side. For 
example I've tried to use @Email and it seems doesn't work.

So I would like to know if there some list of supported annotations.

On the other side I can't figure how can I throw 
custom ConstraintViolationException(s) in my ServiceImpl. 

For example I can't have 2 users with the same email. So, in my 
UserServiceImpl.create() method I would like to throw a 
ConstraintViolationException if someone tries to register with a email that 
is already in the database. But I can't figure how to throw 
a ConstraintViolationException in this case.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fdduXeZxnacJ.
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