Announcement Announcement Module
Collapse
No announcement yet.
Validation of complex bean with property of type List Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validation of complex bean with property of type List

    Hi,

    I would like to know simply if it is possible to validate a complex bean with xdoclet and commons validator.

    By complex bean, I mean a bean with a property of type List, containing a list of object that need to also be validated.

    EX :

    Code:
                class Wallet 
                          public List operations; 
                          public List getOperations; 
                          public void setOperations(List myOperations);
    Code:
                 class Operation
                          public Date date; 
                          public Integer amount; 
                          public Date getDate;
                          public Integer getAmount; 
                          public void setDate(Date myDate);
                          public void setAmount(Integer myAmount);
    Thanks

    Olivier

  • #2
    This is a question I think more suited for the XDoclet mailing lists. Have a look at http://xdoclet.sourceforge.net/ to see if there's more info there.

    Alef

    Comment


    • #3
      Yes I am going to do that, by the way, do you know if it will be possible to do it with the upcoming spring validator framework ?

      Thks

      Olivier

      Comment

      Working...
      X