From 3012ee7fe5133afe63fd6ba498c86dbc6142a8d7 Mon Sep 17 00:00:00 2001 From: Rodrigo Turini Date: Mon, 15 Dec 2014 15:18:16 -0200 Subject: [PATCH] adding vraptor-simple-validator info --- vraptor-site/content/en/docs/validation.html | 5 +++++ vraptor-site/content/pt/docs/validacao.html | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/vraptor-site/content/en/docs/validation.html b/vraptor-site/content/en/docs/validation.html index 1258bb426..fb14c31e1 100644 --- a/vraptor-site/content/en/docs/validation.html +++ b/vraptor-site/content/en/docs/validation.html @@ -251,3 +251,8 @@ ~~~ This code will print "name field have accents" beside the input text. + + +## Programmatic validation + +If you want, you can use the [vraptor-simple-validator](/en/docs/plugins/#vraptor-simple-validator) plugin to do your validations in a fluent way. It provide us a diversity of defaults validations that you may want to use. \ No newline at end of file diff --git a/vraptor-site/content/pt/docs/validacao.html b/vraptor-site/content/pt/docs/validacao.html index cc30797db..568a28978 100644 --- a/vraptor-site/content/pt/docs/validacao.html +++ b/vraptor-site/content/pt/docs/validacao.html @@ -250,3 +250,8 @@ ~~~ Que irá imprimir "nome do cliente possui acentuação". + + +## Validação programática + +Caso prefira, você pode usar o plugin [vraptor-simple-validator](/pt/docs/plugins/#vraptor-simple-validator) para fazer validação de forma fluente em seu código. Ele te oferece uma variedade bem grande de estratégias de validação que você provavelmente vai gostar de usar.