From: John Ahlroos Date: Thu, 17 Jan 2013 11:56:01 +0000 (+0200) Subject: Updated minitutorials X-Git-Tag: 7.0.1~101 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=594dcef2ef02f8d850bfe35535a599a41a7e1252;p=vaadin-framework.git Updated minitutorials Change-Id: Ie3045089d8474a3fd0c62c3caf90e3452941a36a --- diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java b/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java index 59f5831468..eb9afc02cd 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java @@ -24,7 +24,9 @@ public class MyPopupUI extends UI { @Override protected void init(VaadinRequest request) { - setContent(new Label("This is MyPopupUI")); + setContent(new Label("This is MyPopupUI where parameter foo=" + + request.getParameter("foo") + " and fragment is set to " + + getPage().getUriFragment())); } } diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java b/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java index 43e2fdad7e..2152e05f14 100644 --- a/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java +++ b/uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java @@ -30,7 +30,13 @@ public class OpeningUIInPopup extends UI { BrowserWindowOpener popupOpener = new BrowserWindowOpener(MyPopupUI.class); popupOpener.setFeatures("height=300,width=300"); popupOpener.extend(popupButton); + + // Add a parameter + popupOpener.setParameter("foo", "bar"); + // Set a fragment + popupOpener.setUriFragment("myfragment"); + setContent(popupButton); }