Integrate a GWT component to an existing HTML page

3 views
Skip to first unread message

Antonio

unread,
May 24, 2006, 7:17:58 AM5/24/06
to Google Web Toolkit
Hello,

We have an existing JSP application based on struts, and we want to
integrate some GWT components (widgets) to it.

In other words, how to mix GWT and existing HTML in the same page. Can
I do this without using Iframes ?

Thanks advance.

Antonio

Mat Gessel

unread,
May 24, 2006, 7:39:40 AM5/24/06
to Google Web Toolkit
Yes, easily. You give your HTML placeholder element (e.g. a DIV) a
unique value for the id attribute. Then you can access it in your GWT
client code using RootPanel.get(id). The stub app created by
applicationCreator showcases this technique.

-= Mat

Antonio

unread,
May 24, 2006, 9:06:39 AM5/24/06
to Google Web Toolkit
That's it. Thanks a lot.

-antonio

Reply all
Reply to author
Forward
0 new messages