diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-01-29 16:56:43 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-01-29 16:56:43 +0000 |
commit | d189afd876afc2dac2f8a9994fdf9505162f7b77 (patch) | |
tree | 0a11da81a75f86c7ee6078e01e91aa819db6e9ee /src | |
parent | 17e2b652bf2d46ad557b645859084652398a890a (diff) | |
download | vaadin-framework-d189afd876afc2dac2f8a9994fdf9505162f7b77.tar.gz vaadin-framework-d189afd876afc2dac2f8a9994fdf9505162f7b77.zip |
Removed dual adapter registration: in ajax mode the window sent the events both to application manager as well as
to application servlet. This causes various bugs in repainting.
Fixes #247
svn changeset:366/svn branch:toolkit
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/terminal/web/ApplicationServlet.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java b/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java index 1930547b8f..7129673e0d 100644 --- a/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java +++ b/src/com/itmill/toolkit/terminal/web/ApplicationServlet.java @@ -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(); } |