Re: GWT Bean Validation doubts
I think we would all be very grateful for some comprehensive documentation on the use of the validation framework for the front and back ends. Also the editor framework. I don't get how I'm meant to build a full, complex app without understanding these features fully, and current docs are sketchy at best. Thank heavens for TBroyer. On Thursday, 18 October 2012 16:46:46 UTC+1, vehdra music wrote: > > 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/-/3tuZt2LywIQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Bean Validation doubts
*Bump* I'd be interested in answers, too :) Am Donnerstag, 18. Oktober 2012 17:46:46 UTC+2 schrieb vehdra music: > > 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/-/VuE3B9WsKKcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Bean Validation doubts
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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.