cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shai200 <>
Subject Re: WebContinuation is null when using a custom Generator
Date Thu, 15 May 2008 04:28:29 GMT

My custom generator's output is xml, which then goes into further
transformations. I want to have flow between my pages. For now, what I do is
I have a JXTemplateGenerator that spits out a very simple XML:


I then take this continuation ID and place it in the form action value of my
HTML, so that I can use a flowscript. What I wanted to do is skip this step
and just use the flowscript with my custom generator. But I guess there's no
point because then I'll be foregoing the power of JXTemplates.


Joerg Heinicke wrote:
> On 14.05.2008 21:08, shai200 wrote:
>> I'm trying to use a flowscript with a custom generator (not a
>> JXTemplate), so
>> I'm trying to get access to the continuation Id. But when I invoke
>> WebContinuation kont = FlowHelper.getWebContinuation(objectModel);
>> in the setup() method, kont is null... how do I retrieve it? Do I need to
>> work with a org.apache.cocoon.components.flow.ContinuationsManagerImpl ? 
>  From what I understand you just try to retrieve it in the Java code of 
> your custom generator? For the continuation you don't need the 
> JXTemplateGenerator, but "something" that puts it into the object model. 
> Since I don't know what your application I can't really recommend how to 
> do it but you might want to take a look at the callers of 
> FlowHelper.setWebContinuation(..). Maybe that helps you.
> Joerg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Cocoon - Users mailing list archive at

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

View raw message