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
Post a Comment