]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed two bugs that prevents paintables to be cleaned. Commented out some obsolete...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 11 Jan 2011 11:15:26 +0000 (11:15 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 11 Jan 2011 11:15:26 +0000 (11:15 +0000)
svn changeset:16850/svn branch:6.5

src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index f52c42972422aa24c6d411591d7b546274f8642a..624f3beee70d467d50c9a3d994ccf342ac63f37c 100755 (executable)
@@ -977,7 +977,7 @@ public class ApplicationConnection {
                     }
                 }
 
-                if (!repaintAll) {
+                if (repaintAll) {
                     /*
                      * idToPaintableDetail is already cleanded at the start of
                      * the changeset handling, bypass cleanup.
@@ -1103,7 +1103,18 @@ public class ApplicationConnection {
         }
         String id = getPid(p);
         if (id == null) {
-            VConsole.log("Trying to unregister Paintable not created by Application Connection.");
+            /*
+             * Uncomment the following to debug unregistring components. No
+             * paintables with null id should end here. At least one exception
+             * is our VScrollTableRow, that is hacked to fake it self as a
+             * Paintable to build support for sizing easier.
+             */
+            // if (!(p instanceof VScrollTableRow)) {
+            // VConsole.log("Trying to unregister Paintable not created by Application Connection.");
+            // }
+            if (p instanceof HasWidgets) {
+                unregisterChildPaintables((HasWidgets) p);
+            }
         } else {
             unregistryBag.add(id);
             if (p instanceof HasWidgets) {