diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-08-03 10:35:51 +0000 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-03 10:35:51 +0000 |
commit | bc5831f069f648fbf0d89a863b28d80dc4c2bf35 (patch) | |
tree | ac3edcde95d032014adc8804e2d324579bbf0215 /src/com/vaadin/ui/LoginForm.java | |
parent | 9c5e234d7aae214772f2459c43cfc61e7851af11 (diff) | |
download | vaadin-framework-bc5831f069f648fbf0d89a863b28d80dc4c2bf35.tar.gz vaadin-framework-bc5831f069f648fbf0d89a863b28d80dc4c2bf35.zip |
Make LoginForm work inside iframes (#8144)
Automatic test case included but not enabled because it does not currently work with IE6-8
svn changeset:24053/svn branch:6.8
Diffstat (limited to 'src/com/vaadin/ui/LoginForm.java')
-rw-r--r-- | src/com/vaadin/ui/LoginForm.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/ui/LoginForm.java b/src/com/vaadin/ui/LoginForm.java index 80e002435e..eb921e1e18 100644 --- a/src/com/vaadin/ui/LoginForm.java +++ b/src/com/vaadin/ui/LoginForm.java @@ -94,8 +94,8 @@ public class LoginForm extends CustomComponent { }; private URIHandler uriHandler = new URIHandler() { - private final String responce = "<html><body>Login form handeled." - + "<script type='text/javascript'>top.vaadin.forceSync();" + private final String response = "<html><body>Login form handeled." + + "<script type='text/javascript'>parent.parent.vaadin.forceSync();" + "</script></body></html>"; public DownloadStream handleURI(URL context, String relativeUri) { @@ -104,7 +104,7 @@ public class LoginForm extends CustomComponent { window.removeURIHandler(this); } DownloadStream downloadStream = new DownloadStream( - new ByteArrayInputStream(responce.getBytes()), + new ByteArrayInputStream(response.getBytes()), "text/html", "loginSuccesfull"); downloadStream.setCacheTime(-1); return downloadStream; |