Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 57320 invoked from network); 20 Dec 2004 16:19:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Dec 2004 16:19:21 -0000 Received: (qmail 30363 invoked by uid 500); 20 Dec 2004 16:07:37 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 30266 invoked by uid 500); 20 Dec 2004 16:07:36 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 30176 invoked by uid 99); 20 Dec 2004 16:07:33 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from v07274.home.net.pl (HELO v07274.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 20 Dec 2004 08:07:30 -0800 Received: from sj162.internetdsl.tpnet.pl (HELO ?192.168.1.62?) (lgawron.mobilebox@home@80.55.87.162) by matrix15.home.net.pl with SMTP; 20 Dec 2004 16:07:23 -0000 Message-ID: <41C6F8C5.8000706@mobilebox.pl> Date: Mon, 20 Dec 2004 17:07:33 +0100 From: Leszek Gawron User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: binding form model to map References: <41C6EC5B.2080602@mobilebox.pl> In-Reply-To: <41C6EC5B.2080602@mobilebox.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: > Suppose you do not know the exact widget names (the form model is flat - > no repeaters). Is there a possibility to bind the form to a Map > (widgetName -> value)? The only thing I miss from implementing a custom > binding is enumerating all form's widgets. > stupid is stupid does. should have checked first if there is Form.getChildren() .. of course there is :) -- Leszek Gawron lgawron@mobilebox.pl Project Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65