title: How to replace the place holder while customizing validation messages
body: <p>i want to override the message for my h:message What i did i make message.properties file and add it in the faces-config.xml like this</p>
  <pre><code>&lt;application&gt;
       &lt;message-bundle&gt;
              pk.mazars.basitMahmood.MyMessage
    &lt;/message-bundle&gt;
  &lt;/application&gt;
  </code></pre>
  <p>Here is the file</p>
  <pre><code>javax.faces.converter.DateTimeConverter.DATE = {2}: ''{0}'' could not be understood as a date.
  javax.faces.converter.DateTimeConverter.DATE_detail = Invalid date format.
  
  javax.faces.validator.LengthValidator.MINIMUM = Minimum length of ''{0}'' is required.
  javax.faces.component.UIInput.REQUIRED = {1}: Value is required
  </code></pre>
  <p>In my code i used something like this</p>
  <pre><code>&lt;h:inputText id=&quot;username&quot; value=&quot;#{user.username}&quot;
               size=&quot;20&quot; required=&quot;true&quot; label=&quot;Username&quot;&gt;                   
  &lt;/h:inputText&gt;
  &lt;h:message for=&quot;username&quot; style=&quot;color:red&quot; /&gt;
  </code></pre>
  <p>But i get something like this
  <img src="https://i.stack.imgur.com/KbSrH.png" alt="enter image description here" /></p>
  <p>I want instead of getting <code>{1}: value is required</code>. I get <code>username: Value is required</code>. How can i replace <code>{1}</code> with the value. I also tried <code>{0}</code> and '{2}'. But i am getting the same result?</p>
  <p>Thanks</p>