]> source.dussan.org Git - vaadin-framework.git/commitdiff
Sub window can no longer 'open' other windows
authorArtur Signell <artur@vaadin.com>
Mon, 2 Apr 2012 21:58:58 +0000 (00:58 +0300)
committerArtur Signell <artur@vaadin.com>
Wed, 4 Apr 2012 21:08:33 +0000 (00:08 +0300)
src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java

index a3365c940f95fe2decf65e1cd02e3e8997751420..4b5394fa2a6643883da90c277118be4225354434 100644 (file)
@@ -12,7 +12,6 @@ import com.google.gwt.dom.client.Style.Unit;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.Frame;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.ApplicationConnection;
 import com.vaadin.terminal.gwt.client.BrowserInfo;
@@ -191,25 +190,6 @@ public class WindowConnector extends AbstractComponentContainerConnector
         boolean showingUrl = false;
         int childIndex = 0;
         UIDL childUidl = uidl.getChildUIDL(childIndex++);
-        while ("open".equals(childUidl.getTag())) {
-            // TODO multiple opens with the same target will in practice just
-            // open the last one - should we fix that somehow?
-            final String parsedUri = client.translateVaadinUri(childUidl
-                    .getStringAttribute("src"));
-            if (!childUidl.hasAttribute("name")) {
-                final Frame frame = new Frame();
-                DOM.setStyleAttribute(frame.getElement(), "width", "100%");
-                DOM.setStyleAttribute(frame.getElement(), "height", "100%");
-                DOM.setStyleAttribute(frame.getElement(), "border", "0px");
-                frame.setUrl(parsedUri);
-                getWidget().contentPanel.setWidget(frame);
-                showingUrl = true;
-            } else {
-                final String target = childUidl.getStringAttribute("name");
-                Window.open(parsedUri, target, "");
-            }
-            childUidl = uidl.getChildUIDL(childIndex++);
-        }
 
         final ComponentConnector lo = client.getPaintable(childUidl);
         if (getWidget().layout != null) {