title: Bean Validation's resourcebundle parameterization possibility in JSF 2?
body: <p>Using the resourcebundle with BV in JSF 2 would look something like this :</p>
  
  <pre><code>public class UserBean {
      @Size(min=13, message="{creditcard.length}")
      public String getCreditCard() {
          return this.creditCard;
      }
  }
  </code></pre>
  
  <p>And i have to define the ResourceBundle entry in one of the properties file that can be registered in the <code>faces-config.xml</code> </p>
  
  <blockquote>
    <p>creditcard.length=credit card length must be at least 13 characters</p>
  </blockquote>
  
  <p>We can see that the value of the creditcard.length is non parameterized.</p>
  
  <p>Can I do parameterized ResourceBundle entry that can be populated from BV or perhaps somewhere else?</p>
  
  <hr>
  
  <p>This is a simple scenario that I would like to achieve :</p>
  
  <p>creditcard.length=credit card length must be at least {0} characters. thank you for choosing the {1} credit card.</p>
  
  <p>And I was hoping for something like this :</p>
  
  <pre><code>public class UserBean {
      @Size(
          min=13, 
          message="{creditcard.length}", 
          messageParams={"13", "plantvszombie"})
      public String getCreditCard() {
          return this.creditCard;
      }
  }
  </code></pre>
  
  <p>And the error message for the creditcard property will display a string like this when the validation fails :</p>
  
  <p>credit card length must be at least <strong>13</strong> characters. thank you for choosing the <strong>plantvszombie</strong> credit card.</p>
  
  <hr>
  
  <p>Is this ResourceBundle message parameterization possible?</p>
  
  <p>Please share your experience on this matter.</p>
  
  <p>Thank you !</p>