aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-08-28 08:49:22 +0300
committerLeif Åstrand <leif@vaadin.com>2012-08-28 08:49:22 +0300
commitc6d43cc88fb0ef4853e07be54fc76a6aa1dc9e23 (patch)
tree30630eb4b52c49ef9aec191f1c4ce43dbe3732bf /server/src/com/vaadin
parent567e1d861f38913941f0e06fc9c7e7eaee76bd78 (diff)
downloadvaadin-framework-c6d43cc88fb0ef4853e07be54fc76a6aa1dc9e23.tar.gz
vaadin-framework-c6d43cc88fb0ef4853e07be54fc76a6aa1dc9e23.zip
Don't include invisible connectors in Map<Connector, ?> (#9026)
Diffstat (limited to 'server/src/com/vaadin')
-rw-r--r--server/src/com/vaadin/terminal/gwt/server/JsonCodec.java11
1 files changed, 7 insertions, 4 deletions
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;