cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject Re: Question about pipelineUtil and viewdata
Date Wed, 15 Mar 2006 09:01:56 GMT
On Tue, 2006-03-14 at 20:44 +0000, Duncan McLean wrote:
> Hi
> Scenario: I want to construct a viewdata object that I can pass to a
> pipeline then have that data passed to the page (an xsp) in the called
> pipeline
> So I would have:
> cocoon.createObject(;
>      var result = pipelineUtil.processToDOM(myuri, viewData);

Instead of PipelineUtil, you can use the processPipelineTo function of
the FOM. See also the docs over here:

> somewhere in flow, then I would want this viewdata to be passed to an xsp
> in the matched pipeline, to allow the xsp to function correctly.
> Can someone give me an example of how this can be done - presumably I
> could then read the viewdata object within the xsp?

I have no experience using it, but this should do the job:

BTW, in most cases, JXTemplate is the preferred template language for
Cocoon, unless of course you need some functionality that only exists in

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message