Hello all. 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.
Steps I have taken so far are: added dipedencies: <dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-beanvalidator</artifactId> <version>${tapestry-release-version}</version> </dependency> to gain acess to bean validator <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 in my appmodule : public static void contributeBeanValidatorSource( OrderedConfiguration<BeanValidatorConfigurer> conf) { BeanValidatorConfigurer configurer = new BeanValidatorConfigurer() { @Override public void configure( javax.validation.Configuration<?> aConf) { aConf.ignoreXmlConfiguration(); } }; conf.add("MyConfigurer", configurer); } and in my card bean ... @NotNull @NotEmpty @Min(value=1,message="asfdsafdasd") private Integer cardId; ... and the tml is .... <form t:type="form" t:id="createCardForm" validate="this"> .... <tr> <td><t:label for="cardId"/></td> <td><input t:type="TextField" t:id="cardId" t:label="${message:cardId}*" value="card.cardId" size="22"/</td> </tr> this however does not work.Any ideas why? ----- Do not confuse motion for action. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-and-JSR-303-tp4692368p4692368.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org