]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't mark connectors as clean until they won't get dirty again (#9444)
authorLeif Åstrand <leif@vaadin.com>
Fri, 31 Aug 2012 10:50:03 +0000 (13:50 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 31 Aug 2012 10:50:15 +0000 (13:50 +0300)
server/src/com/vaadin/server/AbstractCommunicationManager.java

index 2655ee9a000045af90538f5636ff3350614f6f9a..08ad48ff3d9e8d7e427310f124ceb5d1b312049d 100644 (file)
@@ -832,7 +832,6 @@ public abstract class AbstractCommunicationManager implements Serializable {
                     .isClientSideInitialized(connector);
             connector.beforeClientResponse(!initialized);
         }
-        uiConnectorTracker.markAllConnectorsClean();
 
         outWriter.print("\"changes\":[");
 
@@ -943,6 +942,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
         outWriter.append(hierarchyInfo.toString());
         outWriter.print(", "); // close hierarchy
 
+        uiConnectorTracker.markAllConnectorsClean();
+
         // send server to client RPC calls for components in the UI, in call
         // order
 
@@ -1233,6 +1234,8 @@ public abstract class AbstractCommunicationManager implements Serializable {
             uiConnectorTracker.markClientSideInitialized(connector);
         }
 
+        assert (uiConnectorTracker.getDirtyConnectors().isEmpty()) : "Connectors have been marked as dirty during the end of the paint phase. This is most certainly not intended.";
+
         writePerformanceData(outWriter);
     }