title: Play Framework validation: how to override validation messages for validators with parameters?
body: <p>I am trying to add "custom" validation messages for the parameters called in a Controller method, per specific method (not in the global list of messages)</p>
  
  <p>I found how to do that in a simple case, like:</p>
  
  <p><strong>@Required(message="error.shouldspecifyname") String username</strong></p>
  
  <p>I wonder if I can do a similar trick with validators having parameters.</p>
  
  <p>So, I would like to convert</p>
  
  <p><strong>@Equals("passwordRepeat") String password</strong></p>
  
  <p>to something like </p>
  
  <p><strong>@Equals("passwordRepeat", message="error.passwordsshouldmatch")</strong></p>
  
  <p>What's the correct syntax?</p>
  
  <p>Thanks in advance.</p>