diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-05 19:30:41 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-05 19:30:41 +0300 |
commit | cc3ddcac953a087b09ae330ff37126dcd5ec727f (patch) | |
tree | 35a0b367042298b212038e9cba0ea7d81e6909c3 /uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java | |
parent | d1c361e251800c6f7d596ddf79ed1c7569196856 (diff) | |
download | vaadin-framework-cc3ddcac953a087b09ae330ff37126dcd5ec727f.tar.gz vaadin-framework-cc3ddcac953a087b09ae330ff37126dcd5ec727f.zip |
Remove getApplication() and add getSession() (#9402)
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java index d78cdd9ad5..632eda2491 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/DynamicImageUI.java @@ -20,12 +20,12 @@ public class DynamicImageUI extends AbstractTestUI { @Override public void setup(WrappedRequest request) { // Add the request handler that handles our dynamic image - getApplication().addRequestHandler(new DynamicImageRequestHandler()); + getSession().addRequestHandler(new DynamicImageRequestHandler()); // Create a URL that we can handle in DynamicImageRequestHandler URL imageUrl; try { - imageUrl = new URL(getApplication().getURL(), + imageUrl = new URL(getSession().getURL(), DynamicImageRequestHandler.IMAGE_URL + "?text=Hello!"); } catch (MalformedURLException e) { // This should never happen |