i have a lot of validations annotations by property, i send my code:
My problem is that for the email, i have only one message once there are an error in the property, but in the ssoId, i have more than one message, by example, if a put a value that is not a number in the form of the bean, in the ssoId input, i have two errors, one by the not.null and one for the typeMismatch.Code:.... @NotNull private Long ssoId; .... @NotBlank @Length(min = 1, max = 100) @Email private String email; .... @ValidationMethod(forProperty = "ssoId") private boolean validateSsoIdLength() { return ssoId.toString().length() == 9; }
Can someone help me to only have one message by property?


