Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 98549 invoked from network); 27 May 2005 14:33:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 14:33:13 -0000 Received: (qmail 3892 invoked by uid 500); 27 May 2005 14:32:57 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 3835 invoked by uid 500); 27 May 2005 14:32:57 -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 3794 invoked by uid 99); 27 May 2005 14:32:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ktaemail01.villa-bosch.de (HELO ktaemail01.villa-bosch.de) (212.126.215.56) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 27 May 2005 07:32:55 -0700 Subject: AW: Cocoon.sendpage data object in another flowscript MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C562C8.EA9CF1E4" Date: Fri, 27 May 2005 16:32:31 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message Message-ID: <4202DDA3828BD24D9381128D46B13D2B01ED823A@ktaemail01.villa-bosch.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cocoon.sendpage data object in another flowscript Thread-Index: AcViorGFQJa1SLoORBO1afisQonSmgAJZFXQ From: "Messing, Elad" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C562C8.EA9CF1E4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Some clarifications : My Flowscript : =20 function handleFormRestaurantMainSearch() { var form =3D new Form("forms/restaurant_main_search.xml"); =20 form.showForm("/template/forms/restaurant_main_search.xhtml"); =20 var model =3D form.getModel(); cocoon.sendPage("/RestaurantMainResults/", { "query": model }); =20 } =20 function callRestaurantMainResults() { var query =3D cocoon.context.query; here - query is empty .. } =20 My pipeline: =20 As I said - my problem is that cocoon.contect.query is empty, while I was expected to get the Form results. =20 I hope this is clearer now... =20 Thanks again =20 Elad _____ =20 Von: Messing, Elad=20 Gesendet: Freitag, 27. Mai 2005 11:59 An: users@cocoon.apache.org Betreff: Cocoon.sendpage data object in another flowscript Hello all I think I am missing something here: I have a cocoon form. The last line of the form send the results to a pipeline - cocoon.sendPage("name", data); No the pipeline name actually calls another flowscript function. function name() { var data =3D cocoon.context.data; [some analyzing of data] No - the problem is that "cocoon.context.data" is empty ! I do not get the "data" from the form.=20 It is said in the docs that : "=20 Function sendPage([String] uri, [Object] bean) =20 bean is a context object which can be accessed inside this page to extract various values and place them in the generated page. " So what am I doing wrong ? Thank you ! Elad Messing ------_=_NextPart_001_01C562C8.EA9CF1E4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cocoon.sendpage data object in another = flowscript
Some=20 clarifications :
My=20 Flowscript :
 
function handleFormRestaurantMainSearch() = {
    var form =3D new=20 Form("forms/restaurant_main_search.xml");
   =20
   =20 form.showForm("/template/forms/restaurant_main_search.xhtml");
 
    var model =3D = form.getModel();
   =20 cocoon.sendPage("/RestaurantMainResults/", { "query": model = });
  =20
}
 
function callRestaurantMainResults() {
 var query =3D=20 cocoon.context.query;
  here - query is=20 empty ..
 }
 
My=20 pipeline:
        <map:match=20 pattern=3D"**RestaurantMainResults**">
    &nbs= p;    =20 <map:call=20 function=3D"callRestaurantMainResults"/>
    &n= bsp;  =20 </map:match>
 
As I = said - my problem=20 is that cocoon.contect.query is empty, while I was expected to get the = Form=20 results.
 
I hope this is clearer=20 now...
 
Thanks = again
 
Elad


Von: Messing, Elad =
Gesendet: Freitag,=20 27. Mai 2005 11:59
An: = users@cocoon.apache.org
Betreff:=20 Cocoon.sendpage data object in another flowscript

Hello all

        I=20 think I am missing something here:

        I=20 have a cocoon form. The last line of the form send the results to a = pipeline -=20 cocoon.sendPage("name", data);

        No=20 the pipeline name actually calls another flowscript function.

        function name() {

       =20         var data =3D=20 cocoon.context.data;

       =20         [some=20 analyzing of data]

        No=20 - the problem is that "cocoon.context.data" is empty ! I do not get the = "data"=20 from the form.

        It=20 is said in the docs that :

        "

        Function sendPage([String] uri, [Object] = bean) =20

       =20         bean is a=20 context object which can be accessed inside this page to extract various = values=20 and place them in the generated page.

        "

        So what am I doing wrong ?

        Thank you !

Elad=20 Messing

------_=_NextPart_001_01C562C8.EA9CF1E4--