]> source.dussan.org Git - vaadin-framework.git/commitdiff
Updated minitutorials 62/662/1
authorJohn Ahlroos <john@vaadin.com>
Thu, 17 Jan 2013 11:56:01 +0000 (13:56 +0200)
committerJohn Ahlroos <john@vaadin.com>
Thu, 17 Jan 2013 11:56:01 +0000 (13:56 +0200)
Change-Id: Ie3045089d8474a3fd0c62c3caf90e3452941a36a

uitest/src/com/vaadin/tests/minitutorials/v7b6/MyPopupUI.java
uitest/src/com/vaadin/tests/minitutorials/v7b6/OpeningUIInPopup.java

index 59f58314681074263fe6bbe8a783eeaa58e5bda4..eb9afc02cd58843f82fd7d213215ec1188eff9ac 100644 (file)
@@ -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()));
     }
 
 }
index 43e2fdad7e438d1189690d657857dae37fd43dca..2152e05f144cbc9f2aa67551f28f603acaae4141 100644 (file)
@@ -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);
     }