Hi , I am using GWT in my project and i came across this issue.. I have the 
container structure as below in my main html... If i try to access main 
directly with

RootPanel.get("main")

, i get an error "A widget that has an existing parent widget may not be 
added to the detach list".. It works fine, if i try to get "container", but 
any child element...(all in dev mode, it works fine in production)

<div id="container" class="container">
  <div id="topbar" class="topbar"></div>
  <div id="navbar" class="navbar"></div>
  <div id="main" class="main"></div>
  <div id="footer" class="footer"></div>
    </div>



I don't want to add all above n code now, say with HTMLPanel (its working, 
if i add one by one each HTMLPanel to container)....

Now i tried another approach of using this DOM parsing and adding a node..

Document.get().getElementById(GwtCnst.PANL_MAIN).appendChild(mainCanvas.
getElement());


Please advise me on whether it will create a performance issue or any thing 
that i am missing.

Thanks
Jugunu

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to