summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/LoginForm.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 19:30:41 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 19:30:41 +0300
commitcc3ddcac953a087b09ae330ff37126dcd5ec727f (patch)
tree35a0b367042298b212038e9cba0ea7d81e6909c3 /server/src/com/vaadin/ui/LoginForm.java
parentd1c361e251800c6f7d596ddf79ed1c7569196856 (diff)
downloadvaadin-framework-cc3ddcac953a087b09ae330ff37126dcd5ec727f.tar.gz
vaadin-framework-cc3ddcac953a087b09ae330ff37126dcd5ec727f.zip
Remove getApplication() and add getSession() (#9402)
Diffstat (limited to 'server/src/com/vaadin/ui/LoginForm.java')
-rw-r--r--server/src/com/vaadin/ui/LoginForm.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/LoginForm.java b/server/src/com/vaadin/ui/LoginForm.java
index 1d0c5c41b6..b57b271778 100644
--- a/server/src/com/vaadin/ui/LoginForm.java
+++ b/server/src/com/vaadin/ui/LoginForm.java
@@ -132,7 +132,7 @@ public class LoginForm extends CustomComponent {
* @return byte array containing login page html
*/
protected byte[] getLoginHTML() {
- String appUri = getApplication().getURL().toString();
+ String appUri = getSession().getURL().toString();
try {
return ("<!DOCTYPE html PUBLIC \"-//W3C//DTD "
@@ -186,13 +186,13 @@ public class LoginForm extends CustomComponent {
@Override
public void attach() {
super.attach();
- getApplication().addRequestHandler(requestHandler);
+ getSession().addRequestHandler(requestHandler);
iframe.setSource(loginPage);
}
@Override
public void detach() {
- getApplication().removeRequestHandler(requestHandler);
+ getSession().removeRequestHandler(requestHandler);
super.detach();
}