Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 45609 invoked from network); 18 Sep 2005 00:24:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2005 00:24:08 -0000 Received: (qmail 86623 invoked by uid 500); 18 Sep 2005 00:24:05 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 85659 invoked by uid 500); 18 Sep 2005 00:24: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 85645 invoked by uid 99); 18 Sep 2005 00:24:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Sep 2005 17:24:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of michael@ralston.id.au designates 220.233.117.204 as permitted sender) Received: from [220.233.117.204] (HELO ns1.stral.net) (220.233.117.204) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Sep 2005 17:24:07 -0700 Received: (qmail 17148 invoked by uid 89); 18 Sep 2005 00:23:30 -0000 Received: by simscan 1.1.0 ppid: 17138, pid: 17141, t: 12.9175s scanners: attach: 1.0.8 clamav: 0.80/m:28/d:650 spam: 3.0.2 Received: from unknown (HELO ?192.168.0.250?) (michael@ralston.id.au@192.168.0.250) by 0 with SMTP; 18 Sep 2005 00:23:17 -0000 From: Michael Ralston Reply-To: michael@ralston.id.au To: users@cocoon.apache.org, scott.yeadon@anu.edu.au Subject: RE: CForm Bind problem (EvaluatorException: org.mozilla.javascript.UniqueTag) Date: Sun, 18 Sep 2005 10:23:14 +1000 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509181023.14902.michael@ralston.id.au> X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on galba.ralston.id.au X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm having a problem creating a CForm with repeaters and binding it to an XML document. I found Scott's email on the mailing list last year (June 22, 2004) with a similar error and I'm wondering if anyone else has had the error and found a solution. I have based my code on the sample in cocoon, with the following files... - form2_model.xml - form2_bind_xml.xml - form2_template.xml specifically I was looking at the 'contacts' widget in those files. This is my error... org.mozilla.javascript.EvaluatorException: "resource://org/apache/cocoon/forms/flow/javascript/Form.js", line 183: Invalid JavaScript value of type org.mozilla.javascript.UniqueTag Below are my xml files. Thanks Michael Ralston This is my form definition... ----- Name Full Size Image Small Size Image Select Add Image Remove selected Images Save Save this Gallery ----- This is my form binding... ----- var appValue = jxpathPointer.getValue(); if (appValue == '') { var precSiblId = jxpathContext.getValue("../preceding-sibling::image/@id"); var newId = Number(precSiblId) + 1; jxpathPointer.setValue(newId.toFixed(0)); } ----- This is my form template... ----- Editing Promotional Item
----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org