1.1 --- a/javaquery/api/src/test/java/org/apidesign/bck2brwsr/htmlpage/PageController.java Sat Jan 12 20:24:30 2013 +0100
1.2 +++ b/javaquery/api/src/test/java/org/apidesign/bck2brwsr/htmlpage/PageController.java Mon Jan 21 13:43:40 2013 +0100
1.3 @@ -43,9 +43,11 @@
1.4 */
1.5 @Page(xhtml="TestPage.html")
1.6 public class PageController {
1.7 + private static final TestPage PAGE = new TestPage();
1.8 +
1.9 @On(event = CLICK, id="pg.button")
1.10 static void updateTitle() {
1.11 - TestPage.PG_TITLE.setText("You want this window to be named " + TestPage.PG_TEXT.getValue());
1.12 + PAGE.PG_TITLE.setText("You want this window to be named " + PAGE.PG_TEXT.getValue());
1.13 }
1.14
1.15 @On(event = CLICK, id={ "pg.title", "pg.text" })
1.16 @@ -53,6 +55,6 @@
1.17 if (!id.equals("pg.title")) {
1.18 throw new IllegalStateException();
1.19 }
1.20 - TestPage.PG_TITLE.setText(id);
1.21 + PAGE.PG_TITLE.setText(id);
1.22 }
1.23 }