Skip to main content

Need to compile code that imports JSR-303 javax.validation.*?

Posted by edburns on July 17, 2009 at 2:05 PM PDT

One of my side-jobs at Sun is shepherding JSR-303 into Glassfish.
Because JSR-303 spec lead does such a fantastic job leading the spec,
and JSR-303 RI lead Hardy Ferentschik does such a fantastic job
implementing it, it's pretty easy. My boss requested I write up a Wiki
page describing the integration work, which can be seen href="http://wiki.glassfish.java.net/Wiki.jsp?page=V3Jsr303BeanValidationIntegration">here.
The most useful part, of course, is the fact that href="http://java.sun.com/javaee/downloads/preview/index.jsp">Glassfish
V3 Preview has full support for version 1.0.CR2 of Bean Validation.
If are using Glassfish V3 Preview, and you have code that depends on
javax.validation classes, you can use this maven repository
information to satisfy your compile time dependencies.

<dependency>
  <groupId>org.glassfish</groupId>
  <artifactId>bean-validator</artifactId>
  <version>3.0-JBoss-4.0.0.Beta1-b01</version>
  <scope>provided</scope>
</dependency>

JSR-314 EG Member Dan Allen contributed a simple demo to the Mojarra
project, the source code for which can be checked out from svn url
.
This demo depends on the version of JSF included with GlassfishV3
preview.

Technorati Tags:

Related Topics >>