Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 86408 invoked from network); 17 Apr 2007 09:50:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2007 09:50:44 -0000 Received: (qmail 49717 invoked by uid 500); 17 Apr 2007 09:50:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 49639 invoked by uid 500); 17 Apr 2007 09:50:42 -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 49587 invoked by uid 99); 17 Apr 2007 09:50:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2007 02:50:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2007 02:50:35 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HdkK0-0004q9-2n for users@cocoon.apache.org; Tue, 17 Apr 2007 11:50:00 +0200 Received: from vpn.rauser-ag.com ([62.157.169.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Apr 2007 11:50:00 +0200 Received: from joerg.heinicke by vpn.rauser-ag.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Apr 2007 11:50:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Joerg Heinicke Subject: Re: AW: AW: AW: Continuations: Snapshot or Pointers? Date: Tue, 17 Apr 2007 09:49:53 +0000 (UTC) Lines: 26 Message-ID: References: <4623C92D.5020608@gmx.de> <000c01c780cb$d010d930$f0001cac@frankfurt.etecture.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 62.157.169.229 (Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.8.1) Gecko/20061010 Firefox/2.0) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Joerg Heinicke gmx.de> writes: > I really wondered about this one as well. What's Widget actually? There is no > import in this file, only thing I found was the reference to/ defineClass of > ScriptableWidget. > > So, where is the class definition of the object that is returned by > > formModel.getModel()? I had a look into ScriptableWidget again [1]. And indeed it seems to be the class we are searching for. It has a method getClassName() returning "Widget", so that's probably the name it's registered with. Also Form.js [2] indicates that you need to extend ScriptableWidget yourself: "Revisit this class, so it gives access to more than the value." You need to make the methods you need accessible. Regards Joerg [1] http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/ java/org/apache/cocoon/forms/flow/javascript/ScriptableWidget.java ?revision=526422&view=markup [2] http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/ resources/org/apache/cocoon/forms/flow/javascript/Form.js ?revision=526422&view=markup --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org