Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 4337 invoked from network); 11 Jun 2003 15:23:31 -0000 Received: from paul.siteprotect.com (64.41.120.36) by daedalus.apache.org with SMTP; 11 Jun 2003 15:23:31 -0000 Received: from apollo.devspace.com (adsl-35-68-fixip.tiscali.ch [212.254.35.68]) by paul.siteprotect.com (8.11.6/8.11.6) with ESMTP id h5BFNUw26724 for ; Wed, 11 Jun 2003 10:23:30 -0500 Message-Id: <5.1.0.14.2.20030611171902.00a5b380@remote.devspace.com> X-Sender: mailing@192.168.1.240 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 11 Jun 2003 17:21:27 +0200 To: commons-user@jakarta.apache.org From: "Christian (SerpentMage)" Subject: [validator]What about Nested beans? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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