title: Validating Integer using JSR303
body: <p>I decided to use JSR303 to validate my forms in Spring 3.0 MVC application. When I try to check <code>@NotEmpty</code> on <code>Integer</code> variable I have exception:</p>
  
  <blockquote>
    <p>javax.validation.UnexpectedTypeException: No validator could be found
    for type: java.lang.Integer</p>
  </blockquote>
  
  <p>First this variable was declared as <code>int</code> (protected int <code>partCount</code>) but I found on the Spring forum that primitives may cause some problems, so I've changed that to Integer. Still same exception. Any ideas?</p>
  
  <p>PS. Same situation with <code>Double</code> and <code>Timestamp</code>, no problems with Strings</p>
  
  <p>Thanks</p>