Hi all,
consider the example for class-level contraints for Adress:
@Address
public class Address {
@NotNull @Max(50) private String street1;
@Max(50) private String street2;
@Max(10) @NotNull private String zipCode;
@Max(20) @NotNull String city;
@NotNull private Country country;
}
There is a constraint for zipCode and city:
"the city can often be correlated to a zipcode and some error checking can be done (provided that a validation service is accessible)"
(see
viewtopic.php?f=26&t=985340,
http://in.relation.to/Bloggers/BeanVali ... onstraints)
In my evaluation of this validation-constraints, i want to get the corresponding properties "zipCode" and "city". I want to mark the corresponding input-fields in my view. (JSF: add a FacesMessages with corresponding clientId.)
How could i do something like that?
best regards
Daniel