Ideally, there should be a pluggability layer here. I started using Hibernate Validator a couple of years ago, but abandoned it since it's not multi-lingual. (see http://opensource.atlassian.com/projects/hibernate/browse/HV-44).
Now I use JaValid instead. Similar feature set, but better implementation. JSR-303 is yet another validation framework. Just my 2c. Olle 2009/6/24 Thiago H. de Paula Figueiredo <thiag...@gmail.com> > 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 > > -- Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se