The GWT 2.0 announcement got me all excited about the UIBinder, but I can't seem to make the demo event handlers function. Is there some module XML magic required to enable this? I created a new eclipse GWT project, and added demo code from the source release, and although the demo widgets are created and added to the page properly, none of the event handlers function.
I tried manually adding ClickHandlers to the bound widgets, and that didn't work either. Clearly I'm missing something. I also noticed that the event handler code generated by the Eclipse Plugin's UIBinder generator for a widget-based UI failed to work either. Any insight or pointers are greatly appreciated. My demo project was created by: 1) Creating new GWT project in eclipse for GWT2.0 no AppEngine 2) Replacing all generated code with a demo EntryPoint (see below). 3) Adding the GWT HandlerDemo.java and HandlerDemo.ui.xml 4) Setting the HandlerDemo package name to the project package No joy :( Module XML - GWT2Demo.gwt.xml: --- <?xml version="1.0" encoding="UTF-8"?> <module rename-to='gwt2demo'> <inherits name='com.google.gwt.user.User'/> <inherits name='com.google.gwt.user.theme.standard.Standard'/> <entry-point class='demo.client.GWT2Demo'/> <source path='client'/> </module> === EntryPoint class - GWT2Demo.java: ------ public class GWT2Demo implements EntryPoint { public void onModuleLoad () { HandlerDemo demo = new HandlerDemo (); Document.get().getBody().appendChild(demo.getElement()); } } === Handler Demo code from Google: --- http://code.google.com/p/google-web-toolkit/source/browse/releases/2.0/user/test/com/google/gwt/uibinder/test/client/HandlerDemo.java http://code.google.com/p/google-web-toolkit/source/browse/releases/2.0/user/test/com/google/gwt/uibinder/test/client/HandlerDemo.ui.xml === Development Environment: Eclipse 3.5/GWT Plugin Java 1.5 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.