Hi, Because there is no active session yet. You have to call session.bind() before that.
On Tue, Jul 3, 2012 at 4:56 PM, dpmihai <dpmi...@yahoo.com> wrote: > In my WebApplication is there possible to know the session id inside > newSession method? > > public Session newSession(Request request, Response response) { > Session session = super.newSession(request, response); > ... > String id = session.getId(); // returns null; > } > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-newSession-id-tp4650337.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org