Because you haven't added it to the DOM? Maybe GWT should throw an error if it's not attached, but it doesn't.
Ian http://examples.roughian.com 2009/6/1 Josué <[email protected]> > > Hello All, > > The following code is not throwing a RuntimeException. Someone here > know why? > > button = new Button("button"); > > button.addClickHandler(new ClickHandler(){ > @Override > public void onClick(ClickEvent event) { > throw new RuntimeException(".onClick() not implemented"); > }}); > > button.click(); > ... > > My version of GWT is 1.6.4. The one that came with google eclipse > plugin for Eclipse. > > Thanks for any help. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
