Hi,
I am trying to pass parameters for attributes that are required.
@NotNull(message=Errors.NAME_REQURED)
String name;
@NotNull(message=Errors.CITY_REQURED)
String city;
The above works fine. But I want to use a generic "{0} is required" message that I want to reuse instead of Errors.NAME_REQURED and Errors.CITY_REQURED.
Is there a way to pass the offending attribute as a parameter to a generic error message?
Regard
ps