You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Christian (SerpentMage)" <ma...@devspace.com> on 2003/06/11 17:21:27 UTC

[validator]What about Nested beans?

I was looking through the source code and have some ideas, but was 
wondering what the official way is.

Imagine the following class declarations (I removed the setters and getters 
for simplicity)

class BeanToWrite {
	private String _strValue;
	private int _iValue;
}

class ParentBean {
	private String _value;
	private BeanToWrite _bean;
}

How do you validate Parent bean, while not forgetting about the validation 
of the BeanToWrite?

Thanks

Christian Gross