Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
[Spring Validation] Colleciton Validation Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Spring Validation] Colleciton Validation


    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.