cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Mitchell <...@happygiraffe.net>
Subject Re: problem showing pdf as text/plain with resourcereader
Date Mon, 28 Dec 2009 21:18:46 GMT
On Thu, Dec 24, 2009 at 7:20 AM, joao tiago a. m. viegas <jtviegas@gmail.com
> wrote:

> i want to wish everybody an Happy Christmas and an Astounding Happy New
> Year.
>
> in the meantime, somewhere in the lower left corner of Europe, in a cocoon
> 2.1,
>
> i'm still on the flowscript issue and i can't figure out what is wrong with
> my code:
>
>    - i have this block inside the components section in the sitemap
>
> <map:flow language="JavaScript">
>    <map:script src="javascript/flow.js" />
> </map:flow>
>
>    - then i have this match
>
> <map:match pattern="page.pdf">
>    <map:call function="invoicecontroller" />
> </map:match>
>
>    - and then i have this javascript file in javascript/flow.js with a
>    function
>
> function invoicecontroller()
> {
>    var nullos = new Packages.org.apache.cocoon.ant.NullOutputStream();
> processPipelineTo("pagesave",null,nullos);
> }
>
> ..now all i get is
> "processPipelineTo" is not defined.
>
> and if in the javascript function i change the function invocation for
> cocoon.processPipelineTo("pagesave",null,nullos);
>
> i get
> processPipelineTo is not a function
>
> can anybody tell me what am i missing here?
>
>
You're missing a "cocoon." -- there's no global function called
processPipelineTo(), but there is one in the cocoon object.

-Dom

Mime
View raw message