Re: ThreadContext.getSession(); return null in wicket 6.5.0
Hi, Use Session.get() if you want to create a new Session if there is no such already. On Thu, Jan 24, 2013 at 9:07 PM, Raul ralva...@netwie.com wrote: Hi, in my application I use ThreadContext.getSession () to get the session, and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what is due? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in-wicket-6-5-0-tp4655741.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
ThreadContext.getSession(); return null in wicket 6.5.0
Hi, in my application I use ThreadContext.getSession () to get the session, and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what is due? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in-wicket-6-5-0-tp4655741.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ThreadContext.getSession(); return null in wicket 6.5.0
Are you sure your session has been bound ? François Le 24 janv. 2013 à 20:07, Raul ralva...@netwie.com a écrit : Hi, in my application I use ThreadContext.getSession () to get the session, and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what is due? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in-wicket-6-5-0-tp4655741.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: ThreadContext.getSession(); return null in wicket 6.5.0
If there currently is no session it won't create one - auto creating a session is undesirable in many cases - e.g. when serving up a static resource. -Original Message- From: Raul [mailto:ralva...@netwie.com] Sent: Friday, 25 January 2013 6:08 AM To: users@wicket.apache.org Subject: ThreadContext.getSession(); return null in wicket 6.5.0 Hi, in my application I use ThreadContext.getSession () to get the session, and works well in wicket 6.4.0, upgrade to 6.5.0 but returns null, what is due? -- View this message in context: http://apache- wicket.1842946.n4.nabble.com/ThreadContext-getSession-return-null-in- wicket-6-5-0-tp4655741.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org