[Seaside] Question about #call:, continuations and responses
Lukas Renggli
renggli at gmail.com
Thu Sep 18 16:53:38 UTC 2008
> When I call #answer: later it will restore the continuation and the old
> stack is restored. When the component is rendered, does this render on the
> same stream that was used before?
No, that's a new request. And a new response stream.
> When I do a #call: in an Ajax callback, I also create a continuation, send
> a notification to stop the callback and then render something on the
> response-stream so that the new component is displayed. However, once the
> #answer: is sent and the continuation is continued i cannot write anything
> to the old stream as the old stream is no longer there. Same goes for the
> new stream, that one was part of the old stack that called #answer:, which
> is discarded when the continuation restores.
You can't. Things are not setup to do #call: or #answer: during AJAX callbacks.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list