On Fri, 12 Aug 2011 04:26:19 -0300, kleanthis <kleanth...@gmail.com> wrote:

Hello all.

Hi!

I am facing a problem and have not been able to find a solution. I want to integrate JSR-303 with tapestry 2.5.6.
The problem is that some of my beans/entities come from a diferent domain
model, so i cannot annotate them with tapestry's @validate annotation.
That's why i want to annotate them with JSR-303 annotations.

You don't need @Validate. Just add the Tapestry-BeanValidator JAR into your classpath.

<dependency>
        <groupId>org.apache.bval</groupId>
        <artifactId>org.apache.bval.bundle</artifactId>
        <version>0.3-incubating</version>
</dependency>

<dependency>
        <groupId>org.apache.poi</groupId>
        <artifactId>poi</artifactId>
        <version>3.6</version>
        <scope>runtime</scope>
</dependency>
and these two are the implementation of JSR-303 from apache

You don't need these dependencies, as Tapestry-BeanValidator already uses Hibernate Validator 4 for that. There may be a conflict between the two JSR 303 implementations. Please remove them org.apache.bval.bundle and try again.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to