spring-guides / gs-crud-with-vaadin

Creating CRUD UI with Vaadin :: Use Vaadin and Spring Data JPA to build a dynamic UI
https://spring.io/guides/gs/crud-with-vaadin
Apache License 2.0
108 stars 141 forks source link

bean validation #3

Closed Nymerea closed 8 years ago

Nymerea commented 8 years ago

Is there a easy way to get bean validation working on vaadin ?

mstahv commented 8 years ago

Very easy, just add a validator implementation and simple JSR 303 validators are automatically applied from your beans. This slightly more advanced Vaadin example uses bean validation. It also uses a add-on library called Viritin to support bean level validators (~ cross field validators) and validation on the fly when user is inputting the data.

Adding validation example to next version of this tutorial is a good idea.

Nymerea commented 8 years ago

I didn't know about Viritin addon ! Thanks for the sharing :-)

gregturn commented 8 years ago

I'm going to go ahead and close this issue, since we don't plan on turning this guide into an extensive tutorial. Feel free to keep discussing deatils.