PDA

View Full Version : Validation of complex bean with property of type List


olivier
08-18-2004, 05:19 AM
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 :


class Wallet
public List operations;
public List getOperations;
public void setOperations(List myOperations);



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

Alef Arendsen
08-19-2004, 05:52 AM
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

olivier
08-19-2004, 12:13 PM
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