]> source.dussan.org Git - vaadin-framework.git/commitdiff
UnknownComponent should now work again (#8651)
authorArtur Signell <artur@vaadin.com>
Thu, 12 Apr 2012 15:04:07 +0000 (18:04 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 12 Apr 2012 15:04:50 +0000 (18:04 +0300)
src/com/vaadin/terminal/gwt/client/ui/UnknownComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/VUnknownComponent.java

index f5709903985e1a42ebc548e0b626dbc872b6cd4a..94eff44eee85f7ec83a6d9c839f1ec68dcc3c8cf 100644 (file)
@@ -6,43 +6,14 @@ package com.vaadin.terminal.gwt.client.ui;
 
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.Paintable;
-import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.VUIDLBrowser;
 
-public class UnknownComponentConnector extends AbstractComponentConnector
-        implements Paintable {
+public class UnknownComponentConnector extends AbstractComponentConnector {
 
     @Override
     public boolean delegateCaptionHandling() {
         return false;
     }
 
-    public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
-        if (!isRealUpdate(uidl)) {
-            return;
-        }
-        getWidget()
-                .setCaption(
-                        "Widgetset does not contain implementation for "
-                                + getWidget().serverClassName
-                                + ". Check its component connector's @Connect mapping, widgetsets "
-                                + "GWT module description file and re-compile your"
-                                + " widgetset. In case you have downloaded a vaadin"
-                                + " add-on package, you might want to refer to "
-                                + "<a href='http://vaadin.com/using-addons'>add-on "
-                                + "instructions</a>. Unrendered UIDL:");
-        if (getWidget().uidlTree != null) {
-            getWidget().uidlTree.removeFromParent();
-        }
-
-        getWidget().uidlTree = new VUIDLBrowser(uidl, client.getConfiguration());
-        getWidget().uidlTree.open(true);
-        getWidget().uidlTree.setText("Unrendered UIDL");
-        getWidget().panel.add(getWidget().uidlTree);
-    }
-
     @Override
     protected Widget createWidget() {
         return GWT.create(VUnknownComponent.class);
@@ -54,6 +25,15 @@ public class UnknownComponentConnector extends AbstractComponentConnector
     }
 
     public void setServerSideClassName(String serverClassName) {
-        getWidget().setServerSideClassName(serverClassName);
+        getWidget()
+                .setCaption(
+                        "Widgetset does not contain implementation for "
+                                + serverClassName
+                                + ". Check its component connector's @Connect mapping, widgetsets "
+                                + "GWT module description file and re-compile your"
+                                + " widgetset. In case you have downloaded a vaadin"
+                                + " add-on package, you might want to refer to "
+                                + "<a href='http://vaadin.com/using-addons'>add-on "
+                                + "instructions</a>.");
     }
 }
index ad702430f630a9ec6e0dad516687ed2a3748df1e..7bcdcec660eea5dc78a917a1ab65dafe14562f92 100644 (file)
@@ -13,7 +13,6 @@ public class VUnknownComponent extends Composite {
     com.google.gwt.user.client.ui.Label caption = new com.google.gwt.user.client.ui.Label();;
     SimpleTree uidlTree;
     protected VerticalPanel panel;
-    protected String serverClassName = "unkwnown";
 
     public VUnknownComponent() {
         panel = new VerticalPanel();
@@ -23,10 +22,6 @@ public class VUnknownComponent extends Composite {
         caption.setStyleName("vaadin-unknown-caption");
     }
 
-    public void setServerSideClassName(String serverClassName) {
-        this.serverClassName = serverClassName;
-    }
-
     public void setCaption(String c) {
         caption.getElement().setInnerHTML(c);
     }