Just use the RequestBuilder class and do a get request for your html file.
Create the html panel and use DOM to set the inner html (DOM.setInnerHTML()) with the String returned from the request builder callback. You can then do myPanel.addAndReplaceElement(widget,"id"); I am doing this now in my current project. Make sure to check the response code is = 200 so you can handle any errors. You would want to check this in the onSuccess for the RequestBuilder because it treats 403 errors ,if i am not mistaken, as being successful. Hope that helps. LT On Feb 2, 2:04 am, Joshua Partogi <[email protected]> wrote: > Dear all, > > I know that there is anHTMLclass in GWT for buffering out a plainhtml. But I > have a case where it would be too much having to write all > thehtmlin my Java class. So I was wondering whether we can just load > anHTMLfile and add that loadedHTMLfile as a widget. Is there any > such class like that in GWT? Or does anyone has the trick for that? > > Thank you in advance. > > -- > If you can't believe in God the chances are your God is too small. > > Read my blog:http://joshuajava.wordpress.com/ > Follow me on twitter:http://twitter.com/jpartogi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
