Last month I posted about Building a Dynamic Tree with JBoss RichFaces and Spring Web Flow. Since then, I have received a few requests to demonstrate how to implement validation within the modal dialog. There are several internet resources that already deal with this but none that provide a complete working example so I decided I would do just that.
You can download the source code in the form of a Maven project and follow along.
Hibernate Validator Dependencies
First step is to add the Hibernate Validator dependency to the project pom. I have used Hibernate Validator 4.0.0.GA because it is a JSR 303 compliant implementation.
<dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate-validator</artifactid> <version>4.0.0.GA</version> <scope>compile</scope> </dependency>
Listing 1 : Hibernate Validator Dependency
» Read more: Web Form Validation with JBoss RichFaces and Hibernate Validator


