]> source.dussan.org Git - vaadin-framework.git/commitdiff
register replaced implementation after switch
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 14 Aug 2007 12:18:41 +0000 (12:18 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 14 Aug 2007 12:18:41 +0000 (12:18 +0000)
svn changeset:2006/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java

index e9db2b64fd5831c4fdd005bf9ea5fee78c3c7490..829849e5a62bd5973137bbf95c0ccec1bafcbb25 100755 (executable)
@@ -351,8 +351,8 @@ public class ApplicationConnection implements EntryPoint, FocusListener {
                        Layout parent = getParentLayout(component);
                        if (parent != null) {
                                Widget w = widgetFactory.createWidget(uidl);
-                               registerPaintable(uidl.getId(), (Paintable) w);
                                parent.replaceChildComponent(component, w);
+                               registerPaintable(uidl.getId(), (Paintable) w);
                                ((Paintable) w).updateFromUIDL(uidl, this);
                                return true;
                        }