Possible to get HTML from a widget?

1,904 views
Skip to first unread message

laredotornado

unread,
Nov 3, 2011, 10:03:32 AM11/3/11
to Google Web Toolkit
Hi,

I'm using GWT 2.4. Is it possible to know what HTML will be rendered
for a given widget (http://www.ing.iac.es/gwt-linux-1.4.60/doc/javadoc/
com/google/gwt/user/client/ui/Widget.html) object? Thanks, - Dave

Danny Kirchmeier

unread,
Nov 3, 2011, 12:34:48 PM11/3/11
to google-we...@googlegroups.com
Maybe you'll want to be using the GWT 2.4 docs instead of the GWT 1.4 docs you seem to have.

Anyway, from the Widget you can call widget.getElement() and from that element you can call element.getString(), which will get you the full html, including it's own tag.

-- Danny
Reply all
Reply to author
Forward
0 new messages