From c6d43cc88fb0ef4853e07be54fc76a6aa1dc9e23 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Tue, 28 Aug 2012 08:49:22 +0300 Subject: Don't include invisible connectors in Map (#9026) --- server/src/com/vaadin/terminal/gwt/server/JsonCodec.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'server/src/com/vaadin') diff --git a/server/src/com/vaadin/terminal/gwt/server/JsonCodec.java b/server/src/com/vaadin/terminal/gwt/server/JsonCodec.java index 177d12004c..3ba52a4e91 100644 --- a/server/src/com/vaadin/terminal/gwt/server/JsonCodec.java +++ b/server/src/com/vaadin/terminal/gwt/server/JsonCodec.java @@ -838,10 +838,13 @@ public class JsonCodec implements Serializable { JSONObject jsonMap = new JSONObject(); for (Entry entry : map.entrySet()) { - Connector key = (Connector) entry.getKey(); - EncodeResult encodedValue = encode(entry.getValue(), null, - valueType, connectorTracker); - jsonMap.put(key.getConnectorId(), encodedValue.getEncodedValue()); + ClientConnector key = (ClientConnector) entry.getKey(); + if (AbstractCommunicationManager.isVisible(key)) { + EncodeResult encodedValue = encode(entry.getValue(), null, + valueType, connectorTracker); + jsonMap.put(key.getConnectorId(), + encodedValue.getEncodedValue()); + } } return jsonMap; -- cgit v1.2.3