Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 17447 invoked from network); 31 Jul 2008 16:30:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2008 16:30:28 -0000 Received: (qmail 34166 invoked by uid 500); 31 Jul 2008 16:30:20 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 34121 invoked by uid 500); 31 Jul 2008 16:30:20 -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 34110 invoked by uid 99); 31 Jul 2008 16:30:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 09:30:20 -0700 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 (athena.apache.org: domain of barbara.slupik@ntlworld.com designates 81.103.221.48 as permitted sender) Received: from [81.103.221.48] (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 16:29:24 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080731162936.HGJH21103.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Thu, 31 Jul 2008 17:29:36 +0100 Received: from [172.16.1.7] (really [81.99.46.167]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080731162936.ZYCY19289.aamtaout02-winn.ispmail.ntl.com@[172.16.1.7]> for ; Thu, 31 Jul 2008 17:29:36 +0100 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <001201c8f328$0dc9a7a0$295cf6e0$@com> References: <001201c8f328$0dc9a7a0$295cf6e0$@com> Content-Type: multipart/alternative; boundary=Apple-Mail-1-843884575 Message-Id: <027F2843-9C4C-4DD0-9000-86E4F7E58A7B@ntlworld.com> From: Barbara Slupik Subject: Re: how to use formMap.put() ? Date: Thu, 31 Jul 2008 17:29:29 +0100 To: users@cocoon.apache.org X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1-843884575 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=flowed I pass parameters to my forms and form widgets like this: var form=3Dnew Form(myFormDefinition); form.setAttribute("myAttribute",myAttribute); = form.lookupWidget("myWidget").setAttribute("myAttribute",myAttribute); Barbara On 31 Jul, 2008, at 5:11 pm, =D0=9C=D0=B0=D1=80=D0=B8=D1=8F = =D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D1=8C=D0=B5=D0=B2=D0=B0 wrote: > How to use formMap.put() to pass the parameters to the fromMap??? > > For example, > > var composit =3D = dao.composition.get(experiment.get("id_compositions")); > formMap.put(key, composit); > > But it doesn=E2=80=99t work=E2=80=A6 > > How can I do it ??? --Apple-Mail-1-843884575 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 I pass parameters to my forms and form widgets like = this:

var form=3Dnew = Form(myFormDefinition);
= form.setAttribute("myAttribute",myAttribute);
= form.lookupWidget("myWidget").setAttribute("myAttribute",myAttribut= e);

Barbara

On 31 = Jul, 2008, at 5:11 pm, =D0=9C=D0=B0=D1=80=D0=B8=D1=8F = =D0=93=D1=80=D0=B8=D0=B3=D0=BE=D1=80=D1=8C=D0=B5=D0=B2=D0=B0 = wrote:

How to use formMap.put() to pass the = parameters to the fromMap???
=C2=A0
For = example,
=C2=A0
var composit =3D = dao.composition.get(experiment.get("id_compositions"));<= /div>
formMap.put(key, = composit);
=C2=A0
But it doesn=E2=80=99t = work=E2=80=A6
=C2=A0
How can I do it = ???

= --Apple-Mail-1-843884575--