Yes, I tried it just to make sure and it doesn't work :-(

According to the doc, the postpipeline code is useful to release
resources that should not become part of the continuation, but are
needed during pipeline processing. Although there's no script suspension
with cocoon.sendPage(), it's not unlikely that some resources should be
released after pipeline processing is complete (and it's exactly what I
need to achieve).

I wonder if sendPageAndWait, with timeToLive set to 0 does create a
continuation object ?

Nicolas.

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Luca Morandini
Sent: 9 juin, 2004 08:56
To: [EMAIL PROTECTED]
Subject: Re: Flow + Hibernate and lazy initialization


Leszek Gawron wrote:

> Have you tried this?:
> 
> function someView() {
>     var session = obtainSession();
>     var data = dao.getData( session );
>     cocoon.sendPage( "view/someView.jx",
              ^^^^^^^^
>                      { data: data },
>                      function() { session.close(); } );
> }

Did you mean "sendPageAndWait" instead ?
According to the doc, "sendPage" has no "postPipelineCode" argoment... 
neither it should have, IMO, since there is no script suspension.

Regards,

---------------------------
      Luca Morandini
    [EMAIL PROTECTED]
http://www.lucamorandini.it
---------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to