Gnik
Gnik

Reputation: 7426

How can i read a HTML file and display the content in GWT with its css

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

Answers (1)

Chris Boesing
Chris Boesing

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

Related Questions