Thursday, May 29, 2014

DockLayoutPanel displays in body, not in div

I have a GWT UI with a DockLayoutPanel as the root widget.  When I use RootLayoutPanel.get() to add it to my HTML page like this:


it displays fine.

When I try to put it in a div like this:


Nothing displays and I get this error in Safari:  TypeError: 'undefined' is not an object (evaluating 'c.gwtOnLoad')

Interestingly, I have another app that has a VerticalPanel as its root and I'm able to add that to a div without a problem.  Is there something odd about DocLayoutPanel that I'm missing?



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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment