Hey, I decided to use JSR303 to validate my forms in Spring 3.0 MVC application. When i try to check @NotEmpty on Integer variable i have exception:
javax.validation.UnexpectedTypeException: No validator could be found for type: java.lang.Integer
Firts this variable was declared as int (protected int partCount) but I found on spring forum that primitives may couse some problems, so Ive changed that to Integer. Still same exception. Any ideas?
PS. Same situation with Double and Timestamp, no problems with Strings
Thanks