cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: Flow Database stuff ( The new FOM? )
Date Fri, 11 Jul 2003 16:55:54 GMT
Will the attached work?

Reinhard Pötz wrote:

>
>
><dream-mode>
> I would like to use this Avalon component mentioned above and
> the Flow interpreter takes care of releasing (and providing)
> stateful components within my scripts. So I would have to
> lookup the Hibernate Session at the beginning(2) and until I 
> finally release(8) it I don't have to take care for it.
>
> 1  function xxx() {
> 2    var hibS = cocoon.getComponent( "hibernateSession" );
> 3    var custBean = hibS.blablabla // get your beans with hibernate
> 4    sendPageAndWait( "bla", {customer : custBean} );
> 5    // do something (updates, reads, whatever)
> 6    var someDifferentBean = hibS.blalbalba
> 7    sendPageAndWait( "bla", {diff : someDifferentBean } );
> 8    sendPageAndRelease( "thankYou", {} );
> 9  }
>
> This would be IMO a very elegant way and IIU the recent discussion
> correctly possible from a technical point of view. Maybe Chris
> can comment on this :-)
>
> Thoughts?
>
></dream-mode>
>
>
>Cheers,
>Reinhard
>
>
>  
>


Mime
View raw message