Re: onclick(Widget w) in version 1.5 and onClick(ClickEvent ce) in version 2.2 - After upgrading

2011-04-14 Thread scono1986
I solved my problem using the following solution: onClick(htmlLink); =>> htmlLink.fireEvent( new ClickEvent(){} ); I hope this solution will help everybody who has same my problem. If you have any solutions else, please reply for discussing ^^ On Apr 14, 10:25 am, scono1986 wrote

onclick(Widget w) in version 1.5 and onClick(ClickEvent ce) in version 2.2 - After upgrading

2011-04-13 Thread scono1986
In version gwt 1.5. I used onClick(Widget w): Ex: when I call setPicture method, I call click action of htmlLink throught onClick(htmlLink): In gwt 1.5: public void setPicture(String url) { onClick(htmlLink); } public void onClick(Widget sender) {

Re: Which method of HandlerManager is ClickListenerCollection.fireClick(widget w) similar with ?

2011-04-13 Thread scono1986
It worked well - Thanks for your help so much ^^ But when we use addDomHandler, it return HandlerRegistration to call removeHandler() method to remove handler: Ex: HandlerRegistration clickHandlerRegistration= addDomHandler(handler, ClickEvent.getType()); HandlerRegistration mouseDown

Which method of HandlerManager is ClickListenerCollection.fireClick(widget w) similar with ?

2011-04-12 Thread scono1986
In gwt 1.5, I used ClickListenerCollection to manage listeners. But in gwt 1.6 It has been deprecated, so I used HandlerManager. public void onBrowserEvent(Event event) { switch (DOM.eventGetType(event)) { case Event.ONCLICK: if(clickListeners !

Re: java.lang.AssertionError after upgrading from gwt 1.5.2 to gwt 1.6.4 (when run in hosted mode)

2011-04-10 Thread scono1986
In version gwt 1.5.2 I used "margin-top", my application runs well. So after upgrading to gwt 1.6.4, If I still use "margin-top", apart from the error message (AssertionError), isn't my application affected ? On Apr 11, 4:10 am, Paul Robinson wrote: > > java.lang.AssertionError: The style name 'm

java.lang.AssertionError after upgrading from gwt 1.5.2 to gwt 1.6.4 (when run in hosted mode)

2011-04-08 Thread scono1986
After upgrading from gwt 1.5.2 to gwt 1.6.4, I run my application in hosted mode, it occurs the following errors: == Error 1 == [ERROR] Uncaught exception escaped java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list at com.googl