WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Paolo Di Tommaso
Dear Wicket Gurus, I'm implementing the Open-session-in-view pattern overriding the onBeginRequest and onEndRequest method of a custom WebRequestCycle. Is there any way to avoid to open a new hibernate session for non-view request, for example resources request (css, javascript, images, etc)

Re: WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Leszek Gawron
Paolo Di Tommaso wrote: Dear Wicket Gurus, I'm implementing the Open-session-in-view pattern overriding the onBeginRequest and onEndRequest method of a custom WebRequestCycle. Is there any way to avoid to open a new hibernate session for non-view request, for example resources request (css,

Re: WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Igor Vaynberg
create it lazily when it gets requested from the request cycle? -igor On Mon, Apr 28, 2008 at 3:36 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Dear Wicket Gurus, I'm implementing the Open-session-in-view pattern overriding the onBeginRequest and onEndRequest method of a custom