cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <luca.morandi...@tin.it>
Subject Re: Flow + Hibernate and lazy initialization
Date Wed, 09 Jun 2004 12:55:55 GMT
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
    lmorandini@ieee.org
http://www.lucamorandini.it
---------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message