diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-03 13:27:39 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-04-03 13:27:39 +0300 |
commit | 29013c34b6407bc0b5c65d52ee760f533105c052 (patch) | |
tree | fd9db10d660584a9b2b409d60da6f505a531dbf8 /server | |
parent | 217ba18e53a8607a9e2480574ec1c3da11f4037f (diff) | |
download | vaadin-framework-29013c34b6407bc0b5c65d52ee760f533105c052.tar.gz vaadin-framework-29013c34b6407bc0b5c65d52ee760f533105c052.zip |
Do not clean connectors before client rpc is sent (#11192, #7891)
Change-Id: I9b0f6f3fb48cad8f870bfa9ccfe99a5725f24b8e
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/communication/UidlWriter.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/src/com/vaadin/server/communication/UidlWriter.java b/server/src/com/vaadin/server/communication/UidlWriter.java index d49e7d9cbf..81bbb91649 100644 --- a/server/src/com/vaadin/server/communication/UidlWriter.java +++ b/server/src/com/vaadin/server/communication/UidlWriter.java @@ -32,10 +32,10 @@ import org.json.JSONException; import com.vaadin.annotations.JavaScript; import com.vaadin.annotations.StyleSheet; -import com.vaadin.server.LegacyCommunicationManager; -import com.vaadin.server.LegacyCommunicationManager.ClientCache; import com.vaadin.server.ClientConnector; import com.vaadin.server.JsonPaintTarget; +import com.vaadin.server.LegacyCommunicationManager; +import com.vaadin.server.LegacyCommunicationManager.ClientCache; import com.vaadin.server.SystemMessages; import com.vaadin.server.VaadinSession; import com.vaadin.ui.ConnectorTracker; @@ -73,8 +73,7 @@ public class UidlWriter implements Serializable { ArrayList<ClientConnector> dirtyVisibleConnectors = ui .getConnectorTracker().getDirtyVisibleConnectors(); VaadinSession session = ui.getSession(); - LegacyCommunicationManager manager = session - .getCommunicationManager(); + LegacyCommunicationManager manager = session.getCommunicationManager(); // Paints components ConnectorTracker uiConnectorTracker = ui.getConnectorTracker(); getLogger().log(Level.FINE, "* Creating response to client"); @@ -136,8 +135,6 @@ public class UidlWriter implements Serializable { new ConnectorHierarchyWriter().write(ui, writer); writer.write(", "); // close hierarchy - uiConnectorTracker.markAllConnectorsClean(); - // send server to client RPC calls for components in the UI, in call // order @@ -148,6 +145,8 @@ public class UidlWriter implements Serializable { new ClientRpcWriter().write(ui, writer); writer.write(", "); // close rpc + uiConnectorTracker.markAllConnectorsClean(); + writer.write("\"meta\" : "); SystemMessages messages = ui.getSession().getService() |