jaroslav@421: package ${package}; jaroslav@141: jaroslav@437: import org.apidesign.bck2brwsr.htmlpage.api.*; jaroslav@435: import static org.apidesign.bck2brwsr.htmlpage.api.OnEvent.*; jaroslav@141: import org.apidesign.bck2brwsr.htmlpage.api.Page; jaroslav@141: jaroslav@421: /** Edit the index.xhtml file. Use 'id' to name certain HTML elements. jaroslav@421: * Use this class to define behavior of the elements. jaroslav@198: */ jaroslav@421: @Page(xhtml="index.xhtml", className="Index") jaroslav@141: public class App { jaroslav@435: @On(event = CLICK, id="hello") jaroslav@421: static void hello() { jaroslav@421: Index.HELLO.setDisabled(true); jaroslav@435: Element.alert("Hello World!"); jaroslav@141: } jaroslav@141: }