title: Bean Validation and error messages at .properties file
body: <p>i am working on a JSF Projekt with Glassfish. My validation works well but i dont become a custom error message.</p>
  
  <pre><code>//Class = User, package = devteam
  @NotEmpty @Pattern(".+@.+\\.[a-z]+")
  private String emailAddress;
  </code></pre>
  
  <p>My ValidationMessages.properties is in the WEB-INF folder with this content:</p>
  
  <pre><code>devteam.User.emailAddress=Invalid e-mail address
  </code></pre>
  
  <p>Thank you.</p>