Can we keep a static HTML to integrate with the dynamic GW开发者_StackOverflow中文版T Widgets that are created. And how will the event handling can be done for the dynamic GWT Widgets.
You have to "attach" GWT widgets to the existing DOM (i.e. HTML) to receive DOM events.
Use wrap(Element)
method that some widgets provide (Label, TextArea, etc) to wrap existing HTML.
You don't have to do this for every Widget, just for the top-most widget in your hierarchy.
The easiest would be to use HTML.wrap(element)
(or InlineHTML
if you need an inline element) and then add your Widgets to it.
精彩评论