Take a look at ComplexPanel.add(Widget, Element) to see what GWT does when adding a widget to another. Technically the method Widget.onAttach() must be called to activate event handlers and Widget.onDetach() to clean them up. In GWT these methods are called in Widget.setParent() which is called during the adoption phase via Panel.adopt() which in turn is called by ComplexPanel.add() to finalize the widget attachment. > > You would need to call onAttach/onDetach yourself but these methods are all non-public for a good reason, so you can only call them when writing a custom widget. In onAttach/onDetach you can see what GWT does to activate/cleanup event handlers at DOM level.
I think from outside your widget you cant activate/cleanup event handlers for your widget (prevents possible memory leaks). I would create a custom header widget to fix the problem. The custom widget can then wrap the child widget with thead/tr/th as needed. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZOlbCKL_LegJ. 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.
