From 5d028ac534c6a5e753a9ce4638979fa1257b8ae2 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 14 Jan 2011 11:49:42 +0000 Subject: [PATCH] #6276 requestCanCreateApplication() in AbstractApplicationPortlet doesn't consider RequestType.EVENT but it should svn changeset:16891/svn branch:6.5 --- .../terminal/gwt/server/AbstractApplicationPortlet.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java index 953ab0c5d4..92d2ede583 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationPortlet.java @@ -705,6 +705,13 @@ public abstract class AbstractApplicationPortlet extends GenericPortlet if (requestType == RequestType.UIDL && isRepaintAll(request)) { return true; } else if (requestType == RequestType.RENDER) { + // In most cases the first request is a render request that renders + // the HTML fragment. This should create an application instance. + return true; + } else if (requestType == RequestType.EVENT) { + // A portlet can also be sent an event even though it has not 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; } return false; -- 2.39.5