summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-08-30 08:19:58 +0300
committerLeif Åstrand <leif@vaadin.com>2013-08-30 08:19:58 +0300
commitdce63d130d9fe54900b6da247d0219886e0cfd14 (patch)
treec1671f3b91aad18ab945b3a9d14b9b9483193526 /server/src
parentbea7fa3430c6f90013e2c9178841120ff3097b1a (diff)
downloadvaadin-framework-dce63d130d9fe54900b6da247d0219886e0cfd14.tar.gz
vaadin-framework-dce63d130d9fe54900b6da247d0219886e0cfd14.zip
Allow creating session for Portlet UI init request (#12473)
Change-Id: I4c62e246c026cec7c87c2bd5ee5435891f885882
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/server/VaadinPortletService.java4
1 files changed, 4 insertions, 0 deletions
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;
}