title: Question about using FacesValidator (JSF Validation) and Bean Validation on one Field
body: <p>i have an email field
  which i want to validate that it's valid email, and validate that it doesn't exist in the database, so i used for valid email pattern the @Email from hibernate in the bean:</p>
  
  <pre><code>@NotBlank(message = "{email.required}")
  @Email(message = "{invalid.email}")
  @Size(max = 25, message = "{long.value}")
  </code></pre>
  
  <p>and in the jsf page:</p>
  
  <pre><code>&lt;f:validator binding="#{emailExistValidator}" /&gt;
  </code></pre>
  
  <p>my questions:</p>
  
  <ol>
  <li>What happens first, the faces validator or the bean validation ?</li>
  <li>What do you think about this mixing between bean validation and
  FacesValidator, is it bad practice,if so what do you suggest ?</li>
  </ol>