If I understand you correctly, you should be able to do what you say you
did. E.g. if your HTML has a div with an id of "someId" and some text
content, then this

     VerticalPanel p = new VerticalPanel();
     p.add(new Label("Hello"));
     p.setBorderWidth(3);
     RootPanel.get().add(p);


will add a bordered box with "Hello" underneath it, as you'd expect.

and this


     VerticalPanel p = new VerticalPanel();
     RootPanel r = RootPanel.get("someId");
     p.add(r);
     p.add(new Label("Hello"));
     p.setBorderWidth(3);
     RootPanel.get().add(p);

will put the text from the div inside the VP

Ian

http://examples.roughian.com


2009/9/11 davis <[email protected]>

>
> The problem was code that stores references to RootPanel div wrappers,
> and later it tried to add these to VerticalPanel.  You obviously can't
> add RootPanel to other panels.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to