Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 98038 invoked from network); 16 Jan 2006 16:09:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 16:09:52 -0000 Received: (qmail 44946 invoked by uid 500); 16 Jan 2006 16:09:48 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 44675 invoked by uid 500); 16 Jan 2006 16:09:46 -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 44664 invoked by uid 99); 16 Jan 2006 16:09:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 08:09:46 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Peter.Neu@gmx.net designates 213.165.64.21 as permitted sender) Received: from [213.165.64.21] (HELO mail.gmx.net) (213.165.64.21) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Jan 2006 08:09:45 -0800 Received: (qmail 14977 invoked by uid 0); 16 Jan 2006 16:09:24 -0000 Received: from 84.172.78.61 by www64.gmx.net with HTTP; Mon, 16 Jan 2006 17:09:24 +0100 (MET) Date: Mon, 16 Jan 2006 17:09:24 +0100 (MET) From: Peter.Neu@gmx.net To: users@cocoon.apache.org MIME-Version: 1.0 References: <1137427537.6353.28.camel@localhost.localdomain> Subject: Re: Error- Accessing widgets in flowscript X-Priority: 3 (Normal) X-Authenticated: #17979613 Message-ID: <18971.1137427764@www64.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ah, thanks :o) -Pete > --- Urspr�ngliche Nachricht --- > Von: Bruno Dumon > An: users@cocoon.apache.org > Betreff: Re: Error- Accessing widgets in flowscript > Datum: Mon, 16 Jan 2006 17:05:37 +0100 > > On Mon, 2006-01-16 at 16:51 +0100, Peter.Neu@gmx.net wrote: > > Hello, > > > > I have some difficulties accessing the widget values in the flow script. > > > > var form = new Form("registration_definition.xml"); > > var wid = form.getWidget(); > > wid.message.value = cocoon.parameters.defaultMessage; > > You need to do: > > wid.getChild("message").value = ... > > > > > The last call throws this exception: > > org.mozilla.javascript.EcmaError: Cannot convert null to an object. > > > > When I access the same widget in an jscript block in the form_definition > > there is no problem. > > > > > > var msg = this.lookupWidget("../message"); > > msg.value = "Selecting." + + event.newValue ; > > > > > > What is the problem here? > > I use the sitemap form the simple form example of the user guide. > > > > cheers, > > > > Pete > > > -- > Bruno Dumon http://outerthought.org/ > Outerthought - Open Source, Java & XML Competence Support Center > bruno@outerthought.org bruno@apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org