Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 10351 invoked from network); 15 Oct 2008 08:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 08:09:36 -0000 Received: (qmail 72522 invoked by uid 500); 15 Oct 2008 08:09:34 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 72469 invoked by uid 500); 15 Oct 2008 08:09:34 -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 72458 invoked by uid 99); 15 Oct 2008 08:09:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 01:09:34 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=MSGID_MULTIPLE_AT,PLING_QUERY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [87.118.111.53] (HELO mail.c-ware.de) (87.118.111.53) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 15 Oct 2008 08:08:24 +0000 Received: from VanBuuren ([87.146.73.71]) by mail.c-ware.de with hMailServer ; Wed, 15 Oct 2008 10:08:25 +0200 From: "Christofer Dutz" To: References: <48F4A0F2020000D40000FE61@pta-emo.csir.co.za> <48F4A124020000D40000FE64@pta-emo.csir.co.za> <48F4A1F0020000D40000FE67@pta-emo.csir.co.za> <48F4A21C020000D40000FE6A@pta-emo.csir.co.za> <48F4A226020000D40000FE6D@pta-emo.csir.co.za> <48F4A33B020000D40000FE70@pta-emo.csir.co.za> <48F4A35E020000D40000FE73@pta-emo.csir.co.za> <48F4A348.5CE9.00D4.0@csir.co.za> In-Reply-To: <48F4A348.5CE9.00D4.0@csir.co.za> Subject: AW: AJAX in CForms... not that simple?! Date: Wed, 15 Oct 2008 10:08:36 +0200 Message-ID: <004301c92e9d$39ba1790$ad2e46b0$@dutz@c-ware.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ackt8xUJF8eRHU39Sq6Jd+b8fLyVQAAqZffQ Content-Language: de X-Virus-Checked: Checked by ClamAV on apache.org Hi Derek Well I can help you with the resources ;-) They are located in jar-files. Depending on the resources you are using=20 Cocoon-forms-block.jar: org.apache.cocoon.forms.resources.* Dojo-rsrc-xxxxxxx.jar: org.apache.cocoon.dojo.rerources.* I usually make them available using the following pipeline: This way I can override the resources in the jars with my alternate implementations. Hope this helps. Chris -----Urspr=FCngliche Nachricht----- Von: Derek Hohls [mailto:DHohls@csir.co.za]=20 Gesendet: Dienstag, 14. Oktober 2008 13:49 An: users@cocoon.apache.org Betreff: AJAX in CForms... not that simple?! I have been working with Cocoon + CForms for a while now,=20 but now have to deal with some more complex processing=20 requirements. I had thought this would be a simple matter,=20 but alas not... =20 Issue 1. I have heavily customized stylesheets that I use for=20 form display. Going back to the default stylesheets is problematic. =20 Issue 2. Locating the resources? This message: http://marc.info/?l=3Dxml-cocoon-users&m=3D111323898129449&w=3D2=20 (and others) refer to the WEB-INF/classes/org/..../forms/resources directory. =20 This I simply cannot find. I have = "WEB-INF/classes/org/apache/cocoon/forms" but no resources directory in sight. =20 I have tried to copy & use the various files directly from the Cocoon installation files... but to no avail. =20 In the end, I have tried to create a small test app, based on the car=20 selector sample, with details as shown below. =20 Although the form displays just fine, it does not exhibit any of the=20 dynamic behavior of the original sample. Comparison of the source code=20 of the two web pages shows them to be the same! =20 What (probably obvious) element/s am I missing? =20 Thanks Derek =20 =20 I have the following directory/files: =20 flow/forms_flow_example.js=20 =20 This file is stripped down to: cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js")= ; function selectCar() { var form =3D new Form("cocoon:/carselector_form"); form.lookupWidget("make").setValue(cocoon.parameters.defaultMake); form.showForm("carselector-display-pipeline.jx"); cocoon.request.setAttribute("carselectorform", form.getWidget()); cocoon.sendPage("carselector-success-pipeline.xsp", {make: form.lookupWidget("make").value, type: form.lookupWidget("type").value, model: form.lookupWidget("model").value} ); } =20 resources/cforms.js resources/cocoon-ajax.js resources/forms-lib.js resources/forms.css resources/jx-macros.xml =20 stylesheets/forms/forms-advanced-field-styling.xsl The above sheet I have altered as follows: stylesheets/forms/forms-field-styling.xsl In this above sheet I have altered the scripts to point directly at the files in the same app. ie.