summaryrefslogtreecommitdiffstats
path: root/server/src/com
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-08-22 21:18:01 +0300
committerArtur Signell <artur@vaadin.com>2012-08-22 21:18:25 +0300
commit098957c08507449e34fd64618d4964ee0b030eba (patch)
tree6e1f5887136a2ddde2319ac8341d59ffc3ec897d /server/src/com
parent050bec8a443b916e45adf4bf7ea91241690d37e2 (diff)
downloadvaadin-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.java3
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()