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:
<flow><form>#{$cocoon/continuation/id}</form></flow>
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.
Shai
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/WebContinuation-is-null-when-using-a-custom-Generator-tp17244132p17245761.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]