cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@wlkp.org>
Subject [PROPOSAL] allow to invoke continuations from flow instead of sitemap
Date Tue, 06 Apr 2004 10:38:50 GMT

Hello,
Christofer Oliver has written [1] that I should make a proposal so here it is:

What do you think about the flow ability to call a continuation knowing the
continuation id.

It should look something like:

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(), wk );

Right now this is not a supported feature (it works when one does not use page
local variables).

The usage:
- when he continuation id is stored somewhere else than request uri (for
  example request parameter)
- when one gets 2 continuation ids and chooses one basing on some external
  info
- when one wants to do something for each continuation resumed (for example
  set "Cache-control" header).

For all above examples you have to code logic in sitemap. I think this is not
as elegant as if you could have whole logic in a flowscript

You can read the previous thread at [2]

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108106316017469&w=2
[2] http://marc.theaimsgroup.com/?t=108082631300002&r=1&w=2


	lg
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Mime
View raw message