cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitra Nefeli <dimnefel...@gmail.com>
Subject Re: Sitemap: Error calling continuation
Date Fri, 11 Jan 2013 12:41:36 GMT
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:dimnefeli23@gmail.com]
> Sent: Friday, January 11, 2013 11:43 AM
> To: 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
> at <map:call> - file:///usr/local/fedora/tomcat/webapps/cocoon/sitemap.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-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
The _sitemap.xmap_ is:
<?xml version="1.0"?>
<map:sitemap xmlns:map="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"/>
         </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}"/>
      </map:match>

    </map:pipeline>

  </map:pipelines>

</map:sitemap>

_editing.js_
cocoon.load("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
_
_

Mime
View raw message