I forgot to mention that the Div that I should wrap is already in DOM.
I get it this way:
Element myBigDiv = DOM.getElementById("myDiv");On Mar 10, 9:44 pm, wera <[email protected]> wrote: > Thanks > I tried that, its like setting innerHTML. So it takes a lot time > > I saw that there is a function HTML.wrap(Element) > But I didn't succeed to use it, I get an exception when I add the > created component to DOM > > thank you > > On Mar 10, 9:20 pm, "levi.bracken" <[email protected]> wrote: > > > Have you tried just setting the text in the constructor of the HTML > > widget or HTML Panel? > > > String customHtml = "<div>My Custom HTML...</div>"; > > HTML myDiv = new HTML(customHtml); > > > That should do the job unless your content is changing. It's > > typically very fast. What kind of markup is in your html? > > > On Mar 10, 2:10 pm, wera <[email protected]> wrote: > > > > Hi all, > > > > I have an HTML div that should be moved to GWT component efficiently. > > > What do you recommend? > > > > Before I was doing it by setting innerHTML in gwt HTML() component > > > (http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/ > > > src/com/google/gwt/user/client/ui/HTML.java?r=3173) > > > > But it took too long to do it. > > > > thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
