2.0 dynamically build with child widgets

Mon, 21 Jun 2010 18:33:56 -0700

I'm trying to dynamically insert a <tr> with two <td>s one of which is
a Button() which I need a clickhandler attached to it.  I know going
button.toString and appending that to the <tr> string like this:
$(dynamicTable).append("<tr><td>"+button+"</td><td>"+someString+"</
td></tr>");
results in the clickhandler not being bound to the button.  I was
doing it this way as opposed to using a flextable as I was trying to
minimise my use of widgets (ie: a FlexTable).  Is using a widget my
only avenue in this situation or is there something akin to
button.toStringWithEventsStillAttached(); ?

Thanks,
Nick

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to