On Sat, Apr 03, 2004 at 03:55:54PM -0800, Christopher Oliver wrote:
> Sylvain Wallez wrote:
>
> >Christopher Oliver wrote:
> >
> >>These ContinuationsManager API should _not_ be used in a flowscript.
> >>Use the sitemap to invoke your continuation, please.
> >
> >
> >
> >Although I found this hacky, is there any technical reasons that
> >prevents this to work?
> >
> >Sylvain
> >
> Yes, the FOM_Cocoon object requires special setup before invoking a
> continuation or entry point function.
if so , why does this code work (under condition that you do not use page
local variables):
contManager = null;
try {
contManager = cocoon.getComponent
( "org.apache.cocoon.components.flow.ContinuationsManager" );
var wk = contManager.lookupWebContinuation( continuationId );
} finally {
if ( contManager != null )
cocoon.releaseComponent( contManager );
}
cocoon.handleContinuation( wk.getContinuation() );
lg
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ [EMAIL PROTECTED] _\\()//_
.'/()\'. Phone: +48(501)720812 / // \\ \
\\ // recursive: adj; see recursive | \__/ |