commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian (SerpentMage)" <>
Subject [validator]What about Nested beans?
Date Wed, 11 Jun 2003 15:21:27 GMT
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?


Christian Gross

View raw message