Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 63200 invoked from network); 19 Oct 2006 18:09:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 18:09:35 -0000 Received: (qmail 40572 invoked by uid 500); 19 Oct 2006 18:09:30 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 40551 invoked by uid 500); 19 Oct 2006 18:09:30 -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 40535 invoked by uid 99); 19 Oct 2006 18:09:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 11:09:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [130.92.9.70] (HELO mailhub03.unibe.ch) (130.92.9.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 11:09:28 -0700 Received: from localhost (scanhub01.unibe.ch [130.92.5.61]) by mailhub03.unibe.ch (Postfix) with ESMTP id 6C90C507B6 for ; Thu, 19 Oct 2006 20:09:03 +0200 (CEST) X-Virus-checked: by University of Berne Received: from mailhub03.unibe.ch ([130.92.9.70]) by localhost (scanhub01.unibe.ch [130.92.5.61]) (amavisd-new, port 10024) with LMTP id ISZV-7bTaPIK for ; Thu, 19 Oct 2006 20:09:00 +0200 (CEST) Received: from bricktop.unibe.ch (bricktop-eth0.unibe.ch [130.92.4.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub03.unibe.ch (Postfix) with ESMTP id D50FB5079F for ; Thu, 19 Oct 2006 20:09:00 +0200 (CEST) Received: from [130.92.79.66] (aae66.unibe.ch [130.92.79.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bricktop.unibe.ch (Postfix) with ESMTP id C8B46EA80AC for ; Thu, 19 Oct 2006 20:08:53 +0200 (CEST) Message-ID: <4537BF3D.8070709@weitling.net> Date: Thu, 19 Oct 2006 20:09:01 +0200 From: Dev at weitling User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: Users at Cocoon Subject: Understanding the DataSourceChooserSample Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi (again), after having trouble with a really simple Forms/Ajax/Flow-thingie on my own, I had again a look at the DataSourceChooserSample (default distribution: http://localhost:8888/samples/blocks/forms/do-datasourceChooser.flow). Looking at the Javascript, there should be the Form be sent once. When the user makes a selection, the form is submitted, the script continues via continuation and *should* send the result pipeline. BUT instead it sends the updated form although there is no loop. Huh ?! Ok, my simple version has a loop, changes something, sends the updates with the bu:-commands in XML-format, BUT shows everytime a new page. Please have a look and explain me before I get crazy. Pleez. Thanks for any help, Florian #### My script: #### ... function aiaks () { var form = new Form("aiaks_fd.xml"); var i = 0; do { form.showForm("aiaks_ft.xml"); var myoutput = form.lookupWidget("myoutput"); myoutput.setValue(form.lookupWidget("mytext").getValue()); if ( i % 2 == 0 ) { myoutput.setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.OUTPUT); } else { myoutput.setState(Packages.org.apache.cocoon.forms.formmodel.WidgetState.INVISIBLE); } i++; } while ( form.lookupWidget("mytext").getValue() != "foo" ) ; cocoon.sendPage("success"); } #### My template (aiaks_ft.xml): #### ...
#### My sitemap: #### ... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org