cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <kschnei...@gmail.com>
Subject Re: [Java Flow] Why doesn't sendPage automatically invalidate the continuation?
Date Thu, 27 Oct 2005 15:19:54 GMT
Just a note that we're also using CForms, so our hook into
sendPageAndWait is generally through FormInstance.show.

On 10/27/05, Kris Schneider <kschneider@gmail.com> wrote:
> We're using Java Flow and it looks like continuations are not
> invalidated by calling sendPage. Is there a reason to keep a
> continuation around after invoking sendPage? Is it a problem if we
> override the AbstractContinuable impl with something like:
>
> public class MyContinuable extends AbstractContinuable {
>
>     public void sendPage(String uri, Object bizdata) {
>         super.sendPage(uri, bizdata);
>         Map objectModel = getObjectModel();
>         WebContinuation webContinuation =
> FlowHelper.getWebContinuation(objectModel);
>         ContinuationsManager mgr =
> (ContinuationsManager)getComponent(ContinuationsManager.ROLE);
>         mgr.invalidateWebContinuation(webContinuation);
>     }
> }
>
> Thanks for any insight.
>
> --
> Kris Schneider <mailto:kschneider@gmail.com>

--
Kris Schneider <mailto:kschneider@gmail.com>

Mime
View raw message