I wouldn't suggest to hack into the page rendering... This lead into most of
my poor code in Tapestry 3 that I'm trying to cleanup...
What I did in Tapestry 4 is a WebRequestFilter that creates a Spring
Hibernate session (I translated the Spring "OpenSessionInView" servlet
filter). If you are using Spring, I can post my code.



On 4/10/06, Ted Steen <[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> I need an active transaction when the page is rendered, in order to
> load/read lazy collections.
> One way to do it would be to start a transaction in beginRender etc.
> Another way that I think is better would be to intercept the method in
> the Engine that renders the page.
> Now the problem is that I am not sure which method that is, actually
> I'm not even sure that this is how it should be done.
> Some help would be appreciated.
>
> /ted
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Thanks,

Henri.

Reply via email to