diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-22 21:18:01 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-22 21:18:25 +0300 |
commit | 098957c08507449e34fd64618d4964ee0b030eba (patch) | |
tree | 6e1f5887136a2ddde2319ac8341d59ffc3ec897d /server/src/com | |
parent | 050bec8a443b916e45adf4bf7ea91241690d37e2 (diff) | |
download | vaadin-framework-098957c08507449e34fd64618d4964ee0b030eba.tar.gz vaadin-framework-098957c08507449e34fd64618d4964ee0b030eba.zip |
Made Root.getCurrent() work in LoginForm LoginListener (#9372)
Diffstat (limited to 'server/src/com')
-rw-r--r-- | server/src/com/vaadin/ui/LoginForm.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/LoginForm.java b/server/src/com/vaadin/ui/LoginForm.java index c8634ea81a..bb7767084c 100644 --- a/server/src/com/vaadin/ui/LoginForm.java +++ b/server/src/com/vaadin/ui/LoginForm.java @@ -99,6 +99,9 @@ public class LoginForm extends CustomComponent { throws IOException { String requestPathInfo = request.getRequestPathInfo(); if ("/loginHandler".equals(requestPathInfo)) { + // Ensure Root.getCurrent() works in listeners + Root.setCurrent(getRoot()); + response.setCacheTime(-1); response.setContentType("text/html; charset=utf-8"); response.getWriter() |