GWT: Delete Content of RootPanel(id) -


i'm trying delete whole content of rootpanel element based on id. rootpanel returns correct , can see it's content in debugger. problem is, delete tried following things:

                rootpanel rp = rootpanel.get("layoutid2");             if (rp != null) {                 (widget widget : rp) {                     rp.remove(widget);                 }             }  

any idea i'm missing, or there function?

best regards, stefan

all of contents of rootpanel might not widgets. example if placed following html in host page:

<div id="layoutid2">    here goes dynamic content </div> 

the text "here goes dynamic content" not appear widget.

by way, removal of widgets can achieved calling rp.clear().


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -