-
Sep 3rd, 2009, 06:00 AM
#1
[Spring Validation] Colleciton Validation
Dears,
I meet a problem in valang which is that, how can I validate the collection elements.
for example:
I have a User class which contains a list of addresses.
class User {
List<Address> addressList;
}
class Address {
String name;
String zipCode;
}
I want to use valang validation feature to validate the name of all user's address
I use addressList[0].name as the valang expression is OK, but how can I validate all the elements of the user's addressList.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules