From 2eec311cda3bf14d131208a94f7444d2af7108ba Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Fri, 19 Oct 2012 16:12:49 +0300 Subject: Make the current session available in session init listeners (#9946) Change-Id: I49ec1ed22fb3cae4f2e7ea7e6d989f2157014499 --- server/src/com/vaadin/server/VaadinService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/com/vaadin/server/VaadinService.java b/server/src/com/vaadin/server/VaadinService.java index 44e82b5898..05e79500bb 100644 --- a/server/src/com/vaadin/server/VaadinService.java +++ b/server/src/com/vaadin/server/VaadinService.java @@ -423,6 +423,8 @@ public abstract class VaadinService implements Serializable { throws ServiceException { VaadinServiceSession session = createVaadinSession(request); + VaadinServiceSession.setCurrent(session); + session.storeInSession(this, request.getWrappedSession()); // Initial locale comes from the request -- cgit v1.2.3