]> source.dussan.org Git - vaadin-framework.git/commitdiff
Allow creating session for Portlet UI init request (#12473)
authorLeif Åstrand <leif@vaadin.com>
Fri, 30 Aug 2013 05:19:58 +0000 (08:19 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 30 Aug 2013 05:19:58 +0000 (08:19 +0300)
Change-Id: I4c62e246c026cec7c87c2bd5ee5435891f885882

server/src/com/vaadin/server/VaadinPortletService.java

index c7fc5a23bd3b2d9a9967fb84fbbe80dd185e3470..194c9c88a92958c6ac1d31f1ebaab4aece8965a5 100644 (file)
@@ -201,6 +201,10 @@ public class VaadinPortletService extends VaadinService {
             // been rendered, e.g. portlet on one page sends an event to a
             // portlet on another page and then moves the user to that page.
             return true;
+        } else if (PortletUIInitHandler.isUIInitRequest(request)) {
+            // In some cases, the RenderRequest seems to be cached, causing the
+            // first request be the one triggered by vaadinBootstrap.js.
+            return true;
         }
         return false;
     }