title: How does it work with bean validation messages and i18n in JSF2?
body: <p>I created validation messages(ValidationMessages.properties) file to make the i18n possible in my project.</p>
  
  <p>It looks like:</p>
  
  <pre><code>pwtNumber.error=PWT Number error.. 
  </code></pre>
  
  <p>I defined it in faces-config.xml:</p>
  
  <pre><code>&lt;message-bundle&gt;com.mycompany.web.i18n.ValidationMessages&lt;/message-bundle&gt;
  </code></pre>
  
  <p>In my code I used it in this way:</p>
  
  <pre><code> @Null(message = "{pwtNumber.error}")
      public String getPwtNummer() {
          return pwtNummer;
      }
  </code></pre>
  
  <p>But the problem is i don't get the error message but the key from the properties file. It is the error message that i get:</p>
  
  <pre><code>myForm:pwtNummer: {pwtNumber.error}
  </code></pre>
  
  <p>How can i solve it?</p>