title: Hibernate Validation doesn't display custom error messages in JSF 2
body: <p>i am using hibernate validation (4.2.0 Final) with JSF 2 and Spring
  and here's my configuration:</p>
  
  <p>1- <strong>applicationContext:</strong></p>
  
  <pre><code>&lt;bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
      &lt;property name="basenames"&gt;
      &lt;list&gt;
  
      &lt;value&gt;classpath:messages/ValidationMessages&lt;/value&gt;
      &lt;value&gt;classpath:messages/application&lt;/value&gt;
  
      &lt;/list&gt;
      &lt;/property&gt;
      &lt;property name="defaultEncoding" value="UTF-8"/&gt;
      &lt;/bean&gt; 
  </code></pre>
  
  <p>2- <strong>faces-config.xml:</strong></p>
  
  <pre><code>&lt;resource-bundle&gt;
             &lt;base-name&gt;messages.ValidationMessages&lt;/base-name&gt;
          &lt;/resource-bundle&gt;
  </code></pre>
  
  <p>when trying to use the following:</p>
  
  <pre><code>@NotBlank(message = "{name.required}")
  private String name;
  </code></pre>
  
  <p>it doesn't work, it doesn't display the message from property file, it displays <strong>{name.required}</strong></p>
  
  <p>please advise why it's not working.</p>