Hey,
I'm new to GWT and am experimenting with adding widgets to my app. I
am using copy and paste code from the documentation:
public void onModuleLoad() {
final DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
p.addNorth(new HTML("header"), 2);
p.addSouth(new HTML("footer"), 2);
p.addWest(new HTML("navigation"), 10);
p.add(new HTML("lorem ipsum foo bah"));
RootPanel.get().add(p);
}
Once I run this (via the eclipse plugin), I get a white HTML page that
just says "header". If I comment out the north line, I get a fully
blank page.
If I modify this to instead be:
RootPanel.get().add(new Button("foo"))
...the button displays without problems (indeed, the greeter app
rendered and worked without problems). Other panels also seem to have
a similar problem of not rendering properly. What's going wrong?
Thanks
--
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.