Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 31700 invoked from network); 17 Jul 2006 14:41:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jul 2006 14:41:47 -0000 Received: (qmail 27040 invoked by uid 500); 17 Jul 2006 14:41:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 26999 invoked by uid 500); 17 Jul 2006 14:41: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 26987 invoked by uid 99); 17 Jul 2006 14:41:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 07:41:42 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of andrewmadu@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 07:41:41 -0700 Received: by nf-out-0910.google.com with SMTP id c31so789087nfb for ; Mon, 17 Jul 2006 07:41:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=on/Wc+KntsAW9Aj9bFQfW0S73H93xlf7nuV1R8g5g1/9WymAeNPKQwvR2llSFunOnQJ6usVWOiV7Zuqkkmx+7Nc+86mIoH1qbFpu+p+g4Czp9YDGNTZ+WjMGa/FFCJeErr0gmY44O9Pe1kqM4Zb22hKjiCrFy1AKWsA6nRRaPxg= Received: by 10.78.164.13 with SMTP id m13mr866282hue; Mon, 17 Jul 2006 07:41:20 -0700 (PDT) Received: by 10.78.151.7 with HTTP; Mon, 17 Jul 2006 07:41:20 -0700 (PDT) Message-ID: Date: Mon, 17 Jul 2006 15:41:20 +0100 From: Andrew To: users@cocoon.apache.org Subject: Re: Cocoon-Ajax issue In-Reply-To: <20060717141815.GC22404@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6405_21366062.1153147280109" References: <20060717141815.GC22404@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6405_21366062.1153147280109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Toby, creditCard.kont != **viewform-* Yes that is correct. It points to my continuation pipe for which I have a hidden continuation id: in the form definition, my continuation pipe being: In my flow I call the ajax pipe as: var form2 = new Form("forms/CreditCardDetails.xml"); form2.showForm("viewform-CreditCardDetails", {"userGlobal":userGlobal}); Hoepfully we can resolve this issue today! regards Andrew I'm having trouble getting Ajax to work myself, but this is one piece of > the Ajax puzzle I think I understand. > > You should either add an ajax-action[1] attribute to form-template > (http://tinyurl.com/ok4ky), containing the **viewform-* target you want > Ajax to use, or you should add the browser-update machinery to the > creditCard.kont pipeline. > > > Toby > > -- > Signed/encrypted mail welcome. GPG/PGP Key-Id: 0x15C5C2EA > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > ------=_Part_6405_21366062.1153147280109 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Toby,

creditCard.kont  !=  **viewform-*


Yes that is correct. It points to my continuation pipe for which I have a hidden continuation id:

 <ft:form-template action="login.kont" name="Form1" method="POST" ajax="true">
   <ft:continuation-id/>

in the form definition, my continuation pipe being:

            <map:match pattern="**.kont">
               <map:select type="request-method">
                 <map:when test="POST">
                   <map:call continuation="{request-param:continuation-id}"/>
                 </map:when>
                 <map:otherwise>
                     <map:call continuation="{1}"/>
                 </map:otherwise>
               </map:select>
            </map:match>

In my flow I call the ajax pipe as:

    var form2 = new Form("forms/CreditCardDetails.xml");
    form2.showForm("viewform-CreditCardDetails", {"userGlobal":userGlobal});

Hoepfully we can resolve this issue today!

regards

Andrew


I'm having trouble getting Ajax to work myself, but this is one piece of
the Ajax puzzle I think I understand.

You should either add an ajax-action[1] attribute to form-template
( http://tinyurl.com/ok4ky), containing the **viewform-* target you want
Ajax to use, or you should add the browser-update machinery to the
creditCard.kont pipeline.


Toby

--
Signed/encrypted mail welcome.  GPG/PGP Key-Id: 0x15C5C2EA

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


------=_Part_6405_21366062.1153147280109--