svn checkout http://openwaf.googlecode.com/svn/trunk/ openwaf-read-only
<?xml version="1.0" encoding="UTF-8"?> <openwaf-web-app> <target-path>D:/Personal/OpenWAFPublic/projects/SampleApplications/HelloOpenWAF_Compiled</target-path> <lib-paths> <path>D:/Personal/OpenWAFPublic/projects/release/WAFJavaLib</path> <path>D:/Personal/OpenWAFPublic/projects/release/WAFLib</path> </lib-paths> <target-ide>netbeans</target-ide><!-- netbeans --> <target-web-app-server>apache</target-web-app-server><!-- glassfish,jboss,websphere --> <compile-mode>test</compile-mode><!-- deploy --> <proxy-servlet-url>WAFProxy</proxy-servlet-url> <compiled-js-file>open-waf-compiled.js</compiled-js-file> <code-gen-settings mode="test"> <compatible-with-ie6>false</compatible-with-ie6> <waf-root-object-name>$w</waf-root-object-name> <add-prefix-to-gen-code>false</add-prefix-to-gen-code> <gen-line-code-prefix> </gen-line-code-prefix> <remove-unused-code>false</remove-unused-code> <mark-unused-code>true</mark-unused-code> <unused-code-marker>/** UNUSED **/</unused-code-marker> <enable-array-getter-setter>true</enable-array-getter-setter> <getter-setter-optimization>false</getter-setter-optimization> </code-gen-settings> <code-gen-settings mode="deploy"> <compatible-with-ie6>true</compatible-with-ie6> <waf-root-object-name>$w</waf-root-object-name> <obfuscate>true</obfuscate> <minify>true</minify> <remove-unused-code>true</remove-unused-code> <enable-array-getter-setter>true</enable-array-getter-setter> <getter-setter-optimization>true</getter-setter-optimization> <aggregate-strings>true</aggregate-strings> </code-gen-settings> </openwaf-web-app>Step 4: Configuring Config file
target-path: Set this to the root directory of target Project in this case HelloOpenWAF_Compiled.target-path in OpenWAFConfig.xml.
lib-paths/path:Set this path to the required libraries for Compilation
package controllers; import com.openwaf.client.core.Window; import com.openwaf.client.event.dom.ClickEvent; import com.openwaf.client.event.dom.ClickHandler; import com.openwaf.client.ui.annotation.ViewElement; import com.openwaf.client.ui.basic.Button; import com.openwaf.core.framework.WAFController; public class Hello extends WAFController { @ViewElement private Button btnSayHello; public Hello(){ btnSayHello.addClickHandler(new ClickHandler() { public void onClick(ClickEvent ce) { Window.alert("Hello World!!!"); } }); } }