summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-23 15:38:35 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-26 16:30:06 +0300
commit820d0811a00ff35092775d5b2c0eae9561640c7b (patch)
treeb6d2eb06d89796ae8ca80ebd1d53e581934744b7
parent70a7fdffbac5aa357cc727a225c667f537310685 (diff)
downloadvaadin-framework-820d0811a00ff35092775d5b2c0eae9561640c7b.tar.gz
vaadin-framework-820d0811a00ff35092775d5b2c0eae9561640c7b.zip
Fix portlet code that was disabled before Root.open was restored
-rw-r--r--src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java9
1 files 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