Re: How to add Widget to a DOM element?

2010-03-19 Thread Pondmouse
Doesn't this work Rootpanel.get(MyIDName).add(widget); I've managed to insert HTML with clickhandlers like this On Mar 18, 3:04 pm, Thomas Broyer t.bro...@gmail.com wrote: On Mar 17, 8:07 pm, Stefan Ballmer stefan.ball...@gmail.com wrote: On Mar 17, 10:46 am, Thomas Broyer t.bro...@gmail.com

Re: How to add Widget to a DOM element?

2010-03-18 Thread Thomas Broyer
On Mar 17, 8:07 pm, Stefan Ballmer stefan.ball...@gmail.com wrote: On Mar 17, 10:46 am, Thomas Broyer t.bro...@gmail.com wrote: Have a look at the javadoc for the attach and detach related methods in the Widget class; and then look at the code for, e.g. HTMLPanel, HTMLTable, CellPanel,

Re: How to add Widget to a DOM element?

2010-03-17 Thread Thomas Broyer
On Mar 17, 12:04 am, Stefan Ballmer stefan.ball...@gmail.com wrote: Is it possible to add a widget to a DOM element? I have some DOM structure that I need to directly create in code and I'd like to add a GWT widget as a child element of this DOM structure. Currently I'm using something

Re: How to add Widget to a DOM element?

2010-03-17 Thread Stefan Ballmer
On Mar 17, 10:46 am, Thomas Broyer t.bro...@gmail.com wrote: Have a look at the javadoc for the attach and detach related methods in the Widget class; and then look at the code for, e.g. HTMLPanel, HTMLTable, CellPanel, etc. Thanks for the hint. Seems that the only sane way to do this is to

How to add Widget to a DOM element?

2010-03-16 Thread Stefan Ballmer
Is it possible to add a widget to a DOM element? I have some DOM structure that I need to directly create in code and I'd like to add a GWT widget as a child element of this DOM structure. Currently I'm using something like the following code to add a SuggestBox: