1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/mojo/src/main/resources/archetype-resources/src/main/java/App.java Wed Jan 09 20:55:26 2013 +0100
1.3 @@ -0,0 +1,15 @@
1.4 +package ${package};
1.5 +
1.6 +import org.apidesign.bck2brwsr.htmlpage.api.OnClick;
1.7 +import org.apidesign.bck2brwsr.htmlpage.api.Page;
1.8 +
1.9 +/** Edit the index.xhtml file. Use 'id' to name certain HTML elements.
1.10 + * Use this class to define behavior of the elements.
1.11 + */
1.12 +@Page(xhtml="index.xhtml", className="Index")
1.13 +public class App {
1.14 + @OnClick(id="hello")
1.15 + static void hello() {
1.16 + Index.HELLO.setDisabled(true);
1.17 + }
1.18 +}