cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <>
Subject Re: Call continuations from flow instead of sitemap
Date Sun, 04 Apr 2004 17:20:20 GMT
Leszek Gawron wrote:

>On Sat, Apr 03, 2004 at 01:58:51PM -0800, Christopher Oliver wrote:
>>These ContinuationsManager API should _not_ be used in a flowscript. Use 
>>the sitemap to invoke your continuation, please.
>>Is it possible to solve your problem by using a helper function to send 
>>the page:
>>function sendPageAndWait(uri, biz, ttl) {
>> cocoon.response.setHeader( "Expires", "-1" );
>> cocoon.response.setHeader( "Cache-Control", "no-cache" );
>> cocoon.response.setHeader( "Pragma", "no-cache" );
>> return cocoon.sendPageAndWait(uri, biz, ttl);
>This would not work as form.showForm() woudn't use this function ... 
>Intercepted flow is nicer idea though. Why is it still considered alpha?
>	lg
If you were to use the V2 version of the CForms flowscript API you could 
do something like this:

function showForm(form, uri) {
    cocoon.response.setHeader( "Expires", "-1" );
    cocoon.response.setHeader( "Cache-Control", "no-cache" );
    cocoon.response.setHeader( "Pragma", "no-cache" );

Whenever the form is redisplayed your script will resume right after the 
call to setBookmark(). You can insert additional code after that which 
will be executed each time before the form is sent to the browser.


View raw message