Em Wed, 24 Jun 2009 15:17:56 -0300, Patrick Moore <patmo...@amplafi.com> escreveu:

Hi there --

Hi!

I just found out about JSR-303 ( bean validation JSR ). It may be too soon to ask.....

A little bit, as it was not approved tyet..

but any plans on implementing this JSR inside of Tapestry?

I implemented something very similar, but with Hibernate Validator, so it must be easy, as JSR 303 looks like Hibernate Validator standerdized and more powerful :). It is in an unreleased version of Tapestry CRUD-Hibernate Validator (http://www.arsmachina.com.br/project/tapestrycrudhibernatevalidator, you can find sources there) It has two parts: some classes that implement ValidationConstraintGenerator, automatically adding the required validation for properties annotated with @NotNull, for example, and a mixin, HibernateValidatorMixin, that executes all the validations again, including the ones defined by @AssertTrue and @AssertFalse, in BaseEditPage (from Tapestry CRUD) subclasses.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to