This content has been marked as final.
Show 6 replies
-
1. Re: Hibernate Validation setup problem
joff Feb 3, 2009 11:53 PM (in response to joff)Oops, found a typo - the EntityManagerFactory actually does have the same name.
So, anyone got any ideas?
-
2. Re: Hibernate Validation setup problem
jharting Feb 4, 2009 3:57 PM (in response to joff)Have you tried enclosing your input fields with s:validate or s:validateAll instead of using rich:ajaxValidator?
-
3. Re: Hibernate Validation setup problem
joff Feb 13, 2009 5:35 AM (in response to joff)Ah yeah I didn't include the form-field.xhtml template - all the input fields have <s:validateAll> around them in that.
-
4. Re: Hibernate Validation setup problem
joff Feb 24, 2009 8:13 AM (in response to joff)Well, I found the solution..
It was because I had the validation annotations on the private fields, and those had names beginning with an underscore character (which is mandated by our code-style over here).
If I put the validation annotations on the getter for the property, it all works fine.
Sounds like a bug to me :(
-
5. Re: Hibernate Validation setup problem
kamrul Feb 17, 2010 3:17 PM (in response to joff)Trye with This process:
Enity Bean:
@Column(name = "EMAIL", length = 100)
@Length(max = 100)
@Email
public String getEmail() {
return this.email;
}
xhtml page:
<h:inputText id="email" value="#{famsPersonalProfile.email}">
<s:validate propagation="none" />
</h:inputText>
<rich:message for="email"></rich:message> -
6. Re: Hibernate Validation setup problem
kamrul Feb 17, 2010 3:21 PM (in response to joff)<blockquote>
_Md. Kamruzzaman kamrul wrote on Feb 17, 2010 15:17:_<br/>
Trye with This process:
Enity Bean:
@Column(name = "EMAIL", length = 100)
@Length(max = 100)
@Email
public String getEmail() {
return this.email;
}
xhtml page:
<h:inputText id="email" value="#{famsPersonalProfile.email}">
<s:validate />
</h:inputText>
<rich:message for="email"></rich:message>
</blockquote>
Click HELP for text formatting instructions. Then edit this text and check the preview.