Stange as the example works. You might want to post your gwt.xml file - Ed On Dec 13, 6:30 am, KK <[email protected]> wrote: > I created one simple program to test the UIHandler annotation from the > tutorial. > > @UiHandler("button") > void handleClick(ClickEvent e) { > Window.alert("Hello, AJAX"); > } > > But this event is not getting triggerred when i click on the button. > > Any clues ? > > public class HelloWorld extends Composite { > > interface HelloWorldUiBinder extends UiBinder<Widget, HelloWorld> { > } > > private static HelloWorldUiBinder uiBinder = > GWT.create(HelloWorldUiBinder.class); > > @UiField Button button; > > @UiHandler("button") > void handleClick(ClickEvent e) { > Window.alert("Hello, AJAX"); > } > > public HelloWorld() { > initWidget(uiBinder.createAndBindUi(this)); > } > } > > > > > > > > }
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
