Reputation: 7426
I just want to read a HTML file and display its content in a GWT widget. Already I have done it but i'm not getting its css and javascripts. So can anyone help me to get the content with its css and javascripts?
Thanks in advance, Gnik
Upvotes: 0
Views: 545
Reputation: 5279
Try the Frame-Widget
A widget that wraps an IFRAME element, which can contain an arbitrary web site.
Usage (taken from the doc):
public class FrameExample implements EntryPoint {
public void onModuleLoad() {
// Make a new frame, and point it at Google.
Frame frame = new Frame("http://www.google.com/");
// Add it to the root panel.
RootPanel.get().add(frame);
}
}
Upvotes: 2