Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 4433 invoked from network); 30 May 2007 22:54:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 May 2007 22:54:14 -0000 Received: (qmail 87673 invoked by uid 500); 30 May 2007 22:54:13 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 87636 invoked by uid 500); 30 May 2007 22:54:13 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 50919 invoked by uid 99); 30 May 2007 22:23:17 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swishey@gmail.com designates 64.233.162.230 as permitted sender) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=PlyE/tKgD3gBnGWCPffMpWGrF0wfkfazoaJkWOApw3aqYeL66Pheez4FxdZ4O4DOdAi5ohUYTm4a2ZtNnvqjyHkziMYzqa4IxmE3BfglJ/cUynQpASri+Zd5ZaCmEz5spXhb6dD33WD8GLX5yrBurblGcgPwOLBB12y53ZODbho= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TTUjN2ag/aiJGkXd6Ze/1r+nrxzODRygfEXxZtjDBHN6jrwyUf+pMpvf82rq/FYrfJmXfyvsg0OElqtfHa/yu5S5B0deQM8TsBD0tAq96FjJ8DCVv1f614BGSV8V0Wq3T08ILhWz/fTH8VRzYFtR/1AUy4DwBWHCFFTHV7phj7E= Message-ID: <705d123f0705301522w716379b8me09b451622be63b9@mail.gmail.com> Date: Wed, 30 May 2007 18:22:37 -0400 From: Sash To: commons-user@jakarta.apache.org Subject: betwixt list xml to bean problem, please help MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11639_33178668.1180563757272" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11639_33178668.1180563757272 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I've been using betwixt for a couple of days, really new to this library. Anyway, using the sample provided on the site, have been able to write simple beans to xml and then back again. However, when I tried to use a bean that had a List of other beans, I got a weird result. The xml is created properly, but when I try to create the bean from xml, an empty object array is created of correct length but with null values. If the list contained only one element, then everythign works correctly. What am I doing wrong or what am I not doing. Tried with betwixt 0.6 to 0.8. Thank you in advance for your comments! XML ----------------------- P200036 ?? 200036 4.99 drmasset F Mon Mar 26 22:10:00 EST 2007 Wed May 23 14:36:31 EDT 2007 200204,212260 simple 200204 212260 0 P200159 /images/products/1177625345014.jpg 12 Monkeys - P200159 200159 1.0 perpetual_serial F Wed Apr 25 15:52:31 EDT 2007 Fri Apr 27 10:42:34 EDT 2007 200018 simple 200018 0 CatalogTO class -------------------------- public class CatalogTO implements Serializable { private List productTOs = new ArrayList(); public List getProductTOs() { return productTOs; } public void addProductTO(ProductTO productTO) { productTOs.add(productTO); } public void setProductTOs(List productTOs) { this.productTOs = productTOs; } } ------=_Part_11639_33178668.1180563757272--