From: Henri Sara Date: Thu, 9 Jul 2009 13:02:36 +0000 (+0000) Subject: #3113 load portal default theme before any others X-Git-Tag: 6.7.0.beta1~2653 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbd40d5dd80f4ea7a0504e451837b5e970c5f0d5;p=vaadin-framework.git #3113 load portal default theme before any others svn changeset:8360/svn branch:6.0 --- diff --git a/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java index 23547297c4..10bc3932dc 100644 --- a/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java +++ b/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java @@ -148,31 +148,6 @@ public class ApplicationPortlet implements Portlet, Serializable { dispatcher.include(request, response); - if (isLifeRay) { - /* - * Temporary support to heartbeat Liferay session when using - * Vaadin based portlet. We hit an extra xhr to liferay - * servlet to extend the session lifetime after each Vaadin - * request. This hack can be removed when supporting portlet - * 2.0 and resourceRequests. - * - * TODO make this configurable, this is not necessary with - * some custom session configurations. - */ - OutputStream out = response.getPortletOutputStream(); - - String lifeRaySessionHearbeatHack = (""); - out.write(lifeRaySessionHearbeatHack.getBytes()); - } - /* * Make sure portal default Vaadin theme is included exactly * once in DOM. @@ -182,6 +157,9 @@ public class ApplicationPortlet implements Portlet, Serializable { // Using portal-wide theme String loadDefaultTheme = (""); + out.write(lifeRaySessionHearbeatHack.getBytes()); + } + } catch (PortletException e) { PrintWriter out = response.getWriter(); out.print("

Servlet include failed!

");