]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed dual adapter registration: in ajax mode the window sent the events both to...
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 29 Jan 2007 16:56:43 +0000 (16:56 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Mon, 29 Jan 2007 16:56:43 +0000 (16:56 +0000)
to application servlet. This causes various bugs in repainting.

Fixes #247

svn changeset:366/svn branch:toolkit

src/com/itmill/toolkit/terminal/web/ApplicationServlet.java

index 1930547b8f20f33dfaccc228d96a58e0517134ac..7129673e0d6b0c6327f70a783eaf740580eab534 100644 (file)
@@ -1885,6 +1885,10 @@ public class ApplicationServlet extends HttpServlet implements
                        application.removeListener((Application.WindowAttachListener) this);
                        application.removeListener((Application.WindowDetachListener) this);
 
+                       // Deregister all window listeners
+                       for (Iterator wins = application.getWindows().iterator(); wins.hasNext();)
+                               ((Window)wins.next()).removeListener((Paintable.RepaintRequestListener)this);
+                       
                        // Manager takes control over the application
                        mgr.takeControl();
                }