]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make the current session available in session init listeners (#9946) 39/139/1
authorLeif Åstrand <leif@vaadin.com>
Fri, 19 Oct 2012 13:12:49 +0000 (16:12 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 19 Oct 2012 13:12:49 +0000 (16:12 +0300)
Change-Id: I49ec1ed22fb3cae4f2e7ea7e6d989f2157014499

server/src/com/vaadin/server/VaadinService.java

index 44e82b5898743821b79369bfd5f4c6fa931b4d51..05e79500bbaa82f61ae813233e8e653305d444fc 100644 (file)
@@ -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