Open GoogleCodeExporter opened 9 years ago
look like the classe change to a new package
org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator
Original comment by sebastie...@gmail.com
on 1 Mar 2011 at 1:52
I changed the source code to that : interpolator = new
ResourceBundleMessageInterpolator();
but I have a problem later.
In struts.xml I have this
<package name="default" extends="hibernate-default" >
<interceptors>
<interceptor-stack name="mybasicStack">
<interceptor-ref name="paramsPrepareParamsStack"/>
<interceptor-ref name="defaultStackHibernate"/>
</interceptor-stack>
</interceptors>
<!-- Default interceptor stack. -->
<default-interceptor-ref name="mybasicStack"/>
in my DAO
public String execute() throws Exception {
try {
service.create(user);
} catch (Exception e) {
e.printStackTrace();
throw e;
}
return SUCCESS;
}
if I run the code in debug mode.. I see that I go into :
Struts2HibernateValidatorV402.java before I go into my execute method.
but the validator never return errors.
band I will get this error
# messageTemplate='{javax.validation.constraints.NotNull.message}'} ]
File: org/hibernate/cfg/beanvalidation/BeanValidationEventListener.java
Line number: 161
this line : Set<ConstraintViolation<ActionSupport>> constraintViolations =
validator.validate(actionAs);
in Struts2HibernateValidatorV402.java
return a empty Set.
Original comment by sebastie...@gmail.com
on 1 Mar 2011 at 3:23
I am facing the same problem. I also need the hibernate-validator 4.1.0.
Original comment by ayslanms
on 3 Mar 2011 at 1:08
I created a Injector to validate Model using Hibernate validator 4.1. Works
fine for me. I'll create a project on github soon. I didn't need all the
others extras of this plugin.
Original comment by sebastie...@gmail.com
on 3 Mar 2011 at 1:12
In my project I only need the hibernate validation.
Original comment by ayslanms
on 3 Mar 2011 at 1:38
Original issue reported on code.google.com by
mar...@demetz.eu
on 25 Feb 2011 at 2:52