1.1 --- a/mojo/src/main/resources/archetype-resources/src/main/java/App.java Wed Jan 09 20:55:26 2013 +0100
1.2 +++ b/mojo/src/main/resources/archetype-resources/src/main/java/App.java Sat Jan 12 20:24:30 2013 +0100
1.3 @@ -1,6 +1,7 @@
1.4 package ${package};
1.5
1.6 -import org.apidesign.bck2brwsr.htmlpage.api.OnClick;
1.7 +import org.apidesign.bck2brwsr.htmlpage.api.On;
1.8 +import static org.apidesign.bck2brwsr.htmlpage.api.OnEvent.*;
1.9 import org.apidesign.bck2brwsr.htmlpage.api.Page;
1.10
1.11 /** Edit the index.xhtml file. Use 'id' to name certain HTML elements.
1.12 @@ -8,8 +9,9 @@
1.13 */
1.14 @Page(xhtml="index.xhtml", className="Index")
1.15 public class App {
1.16 - @OnClick(id="hello")
1.17 + @On(event = CLICK, id="hello")
1.18 static void hello() {
1.19 Index.HELLO.setDisabled(true);
1.20 + Element.alert("Hello World!");
1.21 }
1.22 }