I just tried it but the problem persists....

The problem is with the continuation. The right points in both sitemaps (cocoon and dcEditor(my folder)) are:
 (*dcEditor*)
<map:match pattern="*.continue">
       <map:call continuation="{1}"/>
 </map:match>

(*cocoon)
*<map:match pattern="*/**">
<map:mount check-reload="${sitemap-mount.check-reload}" src="{1}/" uri-prefix="{1}"/>
 </map:match>*.

*Maybe this information can help....
Dimitra.
*

*
On 01/11/2013 02:54 PM, Robby Pelssers wrote:

I think you’re not using Cocoon2.2 so there might be some differences of course…

And so far I have a hunch which you should try out.

    var viewData = { "title" : form.getChild("title").getValue() }

should probably become

    var viewData = { "title" : form.form.getChild("title").getValue() }

Can you give that a try first?

Oh yes..

And for debugging purposes you can also wrap it in a try catch block:

function editingForm() {

   try {

     //do your stuff here

   } catch (e) {

       cocoon.sendPage(“someErrorTemplate”, {“exception”: e})

   }

}

*From:*Dimitra Nefeli [mailto:dimnefel...@gmail.com]
*Sent:* Friday, January 11, 2013 1:42 PM
*To:* users@cocoon.apache.org
*Subject:* Re: Sitemap: Error calling continuation

On 01/11/2013 02:06 PM, Robby Pelssers wrote:

    Can you perhaps show the flowscript involved and the relevant sitemap 
snippets?

    Robby

    -----Original Message-----

    From: Dimitra Nefeli [mailto:dimnefel...@gmail.com]

    Sent: Friday, January 11, 2013 11:43 AM

    To:users@cocoon.apache.org  <mailto:users@cocoon.apache.org>

    Subject: Sitemap: Error calling continuation

    Hi,

    I am trying to make a form and submitting it, a new xml file will be 
created.

    The problem is with the sitemaps and the pipelines.

    In the sitemap.xmap of my folder (dcEditor), I have defined a "dc-success-pipeline", 
which simply "calls" a .jx file.

    The problem is in the continuation of sitemaps, appearing the error:

    org.apache.cocoon.ProcessingExcetion: Sitemap: error calling continuation at 
<map:call> -file:///usr/local/fedora/tomcat/webapps/cocoon/dcEditor/sitemap.xmap  
<file:///%5C%5Cusr%5Clocal%5Cfedora%5Ctomcat%5Cwebapps%5Ccocoon%5CdcEditor%5Csitemap.xmap>

    at <map:call> -file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.xmap  
<file:///%5C%5Cusr%5Clocal%5Cfedora%5Ctomcat%5Cwebapps%5Ccocoon%5Csitemap.xmap>

    I don't know if this information is adequate.

    Please if anyone has some idea, let's help.

    Thanks in advance,

    Dimitra.

    ---------------------------------------------------------------------

    To unsubscribe, e-mail:users-unsubscr...@cocoon.apache.org  
<mailto:users-unsubscr...@cocoon.apache.org>

    For additional commands, e-mail:users-h...@cocoon.apache.org  
<mailto:users-h...@cocoon.apache.org>

    ---------------------------------------------------------------------

    To unsubscribe, e-mail:users-unsubscr...@cocoon.apache.org  
<mailto:users-unsubscr...@cocoon.apache.org>

    For additional commands, e-mail:users-h...@cocoon.apache.org  
<mailto:users-h...@cocoon.apache.org>

The _sitemap.xmap_ is:
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"; <http://apache.org/cocoon/sitemap/1.0>>

  <map:components>
    <map:transformers default="xslt">
      <map:transformer name="i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
        <catalogues default="forms">
          <catalogue id="forms" name="messages"
location="resource://org/apache/cocoon/forms/system/i18n" <resource://org/apache/cocoon/forms/system/i18n>/>
        </catalogues>
        <cache-at-startup>true</cache-at-startup>
      </map:transformer>
    </map:transformers>
  </map:components>


  <map:flow language="javascript">
    <map:script src="editing.js"/>
  </map:flow>

   <map:pipelines>
   <map:pipeline>
     <map:match pattern="editing">
       <map:call function="editingForm"/>
     </map:match>

     <map:match pattern="*.continue">
       <map:call continuation="{1}"/>
     </map:match>

     <map:match pattern="dc-display-pipeline">
       <map:generate type="jx" src="dc_template.xml"/>
       <map:transform type="i18n">
         <map:parameter name="locale" value="en-US"/>
       </map:transform>
       <map:transform src="forms-samples-styling.xsl"/>
       <map:serialize/>
     </map:match>

     <map:match pattern="dc-success-pipeline">
       <map:generate type="jx" src="dc_success.jx">
     </map:match>

     <map:match pattern="resources/*/**">
<map:read src="resource://org/apache/cocoon/{1}/resources/{2}" <resource://org/apache/cocoon/%7b1%7d/resources/%7b2%7d>/>
     </map:match>

   </map:pipeline>

 </map:pipelines>

</map:sitemap>

_editing.js_
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js" <resource://org/apache/cocoon/forms/flow/javascript/Form.js>);

function editingForm() {
        var form = new Form("dc_definition.xml");

        form.showForm("dc-display-pipeline");

    var viewData = { "title" : form.getChild("title").getValue() }
        cocoon.sendPage("dc-success-pipeline", viewData);
}

and _dc_success.jx
_<?xml version="1.0"?>
<html>
  <head>
    <title>Editing successful</title>
  </head>
  <body>
    pipeline works for ${title}!
  </body>
</html>.

Thanks in advance,
Dimitra


Reply via email to