Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 91771 invoked from network); 5 Dec 2005 16:18:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Dec 2005 16:18:10 -0000 Received: (qmail 83655 invoked by uid 500); 5 Dec 2005 16:18:03 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 83593 invoked by uid 500); 5 Dec 2005 16:18:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 83581 invoked by uid 99); 5 Dec 2005 16:18:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 08:18:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.30] (HELO mailrelay.is.nl) (213.133.33.30) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 08:18:01 -0800 Received: from [213.133.51.241] (HELO hai01.hippo.local) by mailrelay.is.nl (CommuniGate Pro SMTP 4.3.5) with ESMTP id 8024386 for users@cocoon.apache.org; Mon, 05 Dec 2005 17:17:40 +0100 Received: from [10.10.100.209] ([10.10.100.209]) by hai01.hippo.local with Microsoft SMTPSVC(5.0.2195.6713); Mon, 5 Dec 2005 17:17:39 +0100 Message-ID: <439467FF.1060204@hippo.nl> Date: Mon, 05 Dec 2005 17:17:03 +0100 From: Niels van Kampenhout Organization: Hippo User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: binding for multivaluefields References: <200512041154.AA3117088894@besonet.ch> In-Reply-To: <200512041154.AA3117088894@besonet.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Dec 2005 16:17:39.0982 (UTC) FILETIME=[69D4EAE0:01C5F9B7] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N cocoon.erard wrote: > Hello, > > I'm trying to bind a multivaluefield with an object, but this doesn't work. > > I've a bean: > > public class MyBean { > > private HashMap questions = new HashMap(); > > public HashMap getQuestions() ... > public void setQuestions(HashMap questions) ... > > } > > the quesitons map contains Question Objects: > > public class Question { > private Object response = null; > > public Object getResponse()... > public void setResponse(Object response)... > > } > > somewhere i make: > > myBean.getQuestions().put("name", new Question()); > myBean.getQuestions().put("languages", new Question()); > > the binding: > > > > > > > > > This works fine for the widget 'name'. If response is null, an Object of the correct type is created for field widgets. If response is != null the content is displayed in the form. > But for 'languages' (which is a selection list) I receive allways the exeption at the end of the mail. > I've already tried out other combinations with row-path and parent-path but didn't find the solution, can someone help me? > > Regars > > Mike Mike, It may be that you have to write some custom binding code in an element. That was the only way I could get multivaluefield binding to work properly. For an example, check this thread: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109653712005198&w=2. Niels --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org