Re: Click even on outer HTMLPanel on existing html ?

2016-01-26 Thread Ed Bras
Hmmm,, so it should work for existing html, that is loaded from an xml file (so no wrap is needed). On 26 January 2016 at 23:31, Jens wrote: > > stupid suggestion but do you sink the events you want to listen for? >> > > addDomHandler() automatically sinks the corresponding native event type. >

Re: Click even on outer HTMLPanel on existing html ?

2016-01-26 Thread Jens
> stupid suggestion but do you sink the events you want to listen for? > addDomHandler() automatically sinks the corresponding native event type. You only need to sink events yourself when you override onBrowserEvent() to handle native events without registering a handler using addDomHandler()

Re: Click even on outer HTMLPanel on existing html ?

2016-01-26 Thread Ed Bras
Yes I do (as DomHandler: ClickEvent.getType()) that's why I don't understand I don't catch any. I get the idea the events aren't bubbled up (passed through), because the loaded html in the HTMLPanel exists of existing html instead of creating it through gwt, such that events are passed through...

Re: Click even on outer HTMLPanel on existing html ?

2016-01-26 Thread Vassilis Virvilis
stupid suggestion but do you sink the events you want to listen for? On Tue, Jan 26, 2016 at 11:00 PM, Ed wrote: > Can somebody please give me some tips on how to solve this ? > How to get the click events on the outer div html, loaded in an HTMLPanel? > Thank you, Ed > > > On Tuesday, 12 Januar

Re: Click even on outer HTMLPanel on existing html ?

2016-01-26 Thread Ed
Can somebody please give me some tips on how to solve this ? How to get the click events on the outer div html, loaded in an HTMLPanel? Thank you, Ed On Tuesday, 12 January 2016 11:53:03 UTC+1, Ed wrote: > > Please some advice on this issue ? > -- You received this message because you are subscr

Re: Click even on outer HTMLPanel on existing html ?

2016-01-12 Thread Ed
Please some advice on this issue ? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send emai

Click even on outer HTMLPanel on existing html ?

2016-01-10 Thread Ed
I load a piece of html from an external file and add wrap it in a HTMLPanel, and add a ClickHandler to the HTMLPanel to catch click events anywhere on the loaded html. However, that doesn't work, I not catch any click event :( The click handler is added as Dom handler. However, if I add a Tex