开发者

Integration of GWT and HTML

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜