diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-14 14:52:53 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-14 14:53:47 +0300 |
commit | 88af61e7576af2220cf857692a484c7e1f2a6326 (patch) | |
tree | 58c96d287cb8250fcee3824d9755b98dded77899 /server/src | |
parent | 3a17a846bd835556f7ace57f187d9727fc484be2 (diff) | |
download | vaadin-framework-88af61e7576af2220cf857692a484c7e1f2a6326.tar.gz vaadin-framework-88af61e7576af2220cf857692a484c7e1f2a6326.zip |
Add comment explaining why beforeClientResponse is used
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/ui/CssLayout.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/CssLayout.java b/server/src/com/vaadin/ui/CssLayout.java index 401eafe6e9..172258a5fe 100644 --- a/server/src/com/vaadin/ui/CssLayout.java +++ b/server/src/com/vaadin/ui/CssLayout.java @@ -228,6 +228,11 @@ public class CssLayout extends AbstractLayout implements LayoutClickNotifier { @Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); + + // This is an obsolete hack that was required before Map<Conenctor, ?> + // was supported. The workaround is to instead use a Map<String, ?> with + // the connector id as the key, but that can only be used once the + // connector has been attached. getState().childCss.clear(); for (Iterator<Component> ci = getComponentIterator(); ci.hasNext();) { Component child = ci.next(); |