cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@wlkp.org>
Subject Re: Call continuations from flow instead of sitemap
Date Sun, 04 Apr 2004 07:00:04 GMT
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            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Mime
View raw message