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
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) {
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
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 !
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
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