title: jsf multiple custom validator messages for regex
body: <p>I need to validate two fields in a form: email and name. The email should match the patern a.a@x.x and the name should only contain letters.</p>
  
  <p>I have the custom-faces-messages.properties with the message I need to display when the pattern is not matching. </p>
  
  <blockquote>
    <p>javax.faces.validator.RegexValidator.NOT_MATCHED = {1}: Validation
    Error: Value not according to pattern ''{0}''</p>
  </blockquote>
  
  <p>However, instead of {0} which displays the pattern in a pretty ugly way, I would like to display a custom text for every validation. Ex for name it should be 'Name can only contain letters' and for email 'Email does not match the pattern. Example a.a@x.x'</p>
  
  <p>Is there a way to do this using the properties file?</p>
  
  <p>Thank you in advance.</p>