From 820d0811a00ff35092775d5b2c0eae9561640c7b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 23 Jul 2012 15:38:35 +0300 Subject: [PATCH] Fix portlet code that was disabled before Root.open was restored --- .../terminal/gwt/server/PortletApplicationContext2.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java b/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java index 0214cb2b35..70505ab5f9 100644 --- a/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java +++ b/src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java @@ -33,6 +33,7 @@ import javax.servlet.http.HttpSessionBindingListener; import javax.xml.namespace.QName; import com.vaadin.Application; +import com.vaadin.terminal.ExternalResource; import com.vaadin.ui.Root; /** @@ -302,9 +303,7 @@ public class PortletApplicationContext2 extends AbstractWebApplicationContext { if (actionUrl != null) { eventActionDestinationMap.put(actionKey, name); eventActionValueMap.put(actionKey, value); - throw new RuntimeException( - "Root.open has not yet been implemented"); - // root.open(new ExternalResource(actionUrl.toString())); + root.getPage().open(new ExternalResource(actionUrl.toString())); } else { // this should never happen as we already know the response is a // MimeResponse @@ -350,9 +349,7 @@ public class PortletApplicationContext2 extends AbstractWebApplicationContext { if (actionUrl != null) { sharedParameterActionNameMap.put(actionKey, name); sharedParameterActionValueMap.put(actionKey, value); - throw new RuntimeException( - "Root.open has not yet been implemented"); - // root.open(new ExternalResource(actionUrl.toString())); + root.getPage().open(new ExternalResource(actionUrl.toString())); } else { // this should never happen as we already know the response is a // MimeResponse -- 2.39.5