Re: Is this the correct way to add an Widget directly to DOM ?

2010-06-24 Thread Thomas Broyer
On 22 juin, 00:03, kuku kukuda...@googlemail.com wrote: Heres my example (a custom widget): public class TestWidget extends Composite {         private static TestWidgetUiBinder uiBinder = GWT                         .create(TestWidgetUiBinder.class);         interface TestWidgetUiBinder

Is this the correct way to add an Widget directly to DOM ?

2010-06-23 Thread kuku
Heres my example (a custom widget): public class TestWidget extends Composite { private static TestWidgetUiBinder uiBinder = GWT .create(TestWidgetUiBinder.class); interface TestWidgetUiBinder extends UiBinderWidget, TestWidget { }

Re: Is this the correct way to add an Widget directly to DOM ?

2010-06-23 Thread Paul Schwarz
Your question seems a little confusing, but your idea is not quite right. Firstly you shouldn't have to call super.onAttach(), the real problem is you are effectively bypassing GWT's widget/event system by trying to get the widget's element and attach it directly. In effect you're mixing GWT and