I have a class with the following fields:
With this definitions I have 2 problems:Code:@NotBlank @Length(min = 2) private String forename; @NotBlank @Length(min = 2) private String surname; @NotBlank @InThePast private String birthday;
1) birthday: This field should be of the type Date, and not of the type String, but if I change the data type, the validation process causes an Exception, that means that he can't validate this data type.
2) Second one; how can I trim the values in the <form></form>, before they are set, and before the 'filled' is validated.
Any suggestions or links, any help is welcome?
thx


