]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix portlet code that was disabled before Root.open was restored
authorLeif Åstrand <leif@vaadin.com>
Mon, 23 Jul 2012 12:38:35 +0000 (15:38 +0300)
committerLeif Åstrand <leif@vaadin.com>
Thu, 26 Jul 2012 13:30:06 +0000 (16:30 +0300)
src/com/vaadin/terminal/gwt/server/PortletApplicationContext2.java

index 0214cb2b3539d7ff534a038dbdce6c8dca52ea1c..70505ab5f9990cd6907cd0301d04ae422da83cf7 100644 (file)
@@ -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