Bean Validation and error messages at .properties file
Posted
by ThreeFingerMark
on Stack Overflow
See other posts from Stack Overflow
or by ThreeFingerMark
Published on 2010-02-10T09:06:25Z
Indexed on
2010/06/01
11:33 UTC
Read the original article
Hit count: 282
Hello, i am working on a JSF Projekt with Glassfish. My validation works well but i dont become a custom error message.
//Class = User, package = devteam
@NotEmpty @Pattern(".+@.+\\.[a-z]+")
private String emailAddress;
My ValidationMessages.properties is in the WEB-INF folder with this content:
devteam.User.emailAddress=Invalid e-mail address
Thank you.
© Stack Overflow or respective owner