From: Leif Åstrand Date: Fri, 30 Aug 2013 05:19:58 +0000 (+0300) Subject: Allow creating session for Portlet UI init request (#12473) X-Git-Tag: 7.1.4~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dce63d130d9fe54900b6da247d0219886e0cfd14;p=vaadin-framework.git Allow creating session for Portlet UI init request (#12473) Change-Id: I4c62e246c026cec7c87c2bd5ee5435891f885882 --- diff --git a/server/src/com/vaadin/server/VaadinPortletService.java b/server/src/com/vaadin/server/VaadinPortletService.java index c7fc5a23bd..194c9c88a9 100644 --- a/server/src/com/vaadin/server/VaadinPortletService.java +++ b/server/src/com/vaadin/server/VaadinPortletService.java @@ -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; }