Christian, The RequestCycle object is already bound to a threadlocal, and when it is created it has a reference to the session; so the session is already effectively thread bound. To get the session you can do:
RequestCycle.get().getSession() The factory method being referred is defined in the Session class protected abstract IRequestCycleFactory getRequestCycleFactory(); See WebSession for an example impl. Igor > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Christian Essl > Sent: Wednesday, July 06, 2005 8:38 AM > To: [email protected] > Subject: Re: [Wicket-user] Callback method on request-start > and request-end > > Thank you for your prompt reply. > > I've been looking already for the cdapp, but I could not find > it. I looked at the sf downlaod page of Wicket and > Wicket-Stuff and there seems to be no download for > wicket-contrib-examples. The only thing I found was the > running example at wicket-library - but no link to download. > Propably I am just too stupid to find it. Can you give me a link? > > Browsing the api I found a factory method for RequestCycle > but this is on Session (newRequestCycle) and is documented as > wicket internal. Is this the right method? > > Thanks, > Christian > > On Wed, 06 Jul 2005 14:00:25 +0200, Eelco Hillenius > <[EMAIL PROTECTED]> wrote: > > > You can create your own RequestCycle implementation for > this. Override > > the factory method in (Web)Application to acchieve this. > > > > See the cdapp example (wicket-contrib-examples of Wicket > Stuff) for an > > example of this (CdAppRequestCycle, CdAppRequestCycle). > > > > Eelco > > > > > > Christian Essl wrote: > > > >> Hi, > >> > >> I want to bind the current Session to a thread-local for > the current > >> request. > >> > >> Is there a callback method which indicates a request-start and end. > >> > >> Looking at the WicketServlet IMO I could use > >> WebApplication.newWebrequest() and override WebResponse.close(). > >> However this seems a bit hacky. Is there a better way? > >> > >> Thanks, > >> Christian > >> > >> > >> > >> > ___________________________________________________________ Gesendet > >> von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: > >> http://mail.yahoo.de > >> > >> > >> > >> ------------------------------------------------------- > >> SF.Net email is sponsored by: Discover Easy Linux Migration > >> Strategies from IBM. Find simple to follow Roadmaps, > straightforward > >> articles, informative Webcasts and more! Get everything > you need to > >> get up to speed, fast. > >> http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >> _______________________________________________ > >> Wicket-user mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > -- > Christian Essl > > > > > > ___________________________________________________________ > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - > Hier anmelden: http://mail.yahoo.de > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
