You are confusing DockLayoutPanel with DockPanel -- two very different
things.
Read about Layout here:
http://code.google.com/p/google-web-toolkit/wiki/LayoutDesign
The actual error is when trying to add something after the CENTER
widget is:
java.lang.AssertionError: No widget may be added after the CENTER
widget.
DockLayoutPanel.java:359
A simple workaround is to use "LayoutPanel" instead and add the
widgets in the preferred tab order.
Once added, use the Widget Layers to set the desired locations.
This is slightly more work than using the DockLayoutPanel since you
have to position the center widget manually.
> You can have a play herehttp://
examples.roughian.com/#Panels~DockPanel- if
> you get an error, let me know.
>
> I think in the docs, Google says you can't but in practice (even in 2.0m2)
> you can.
>
> But why aren't you using a VerticalPanel? Or even better, a FlowPanel, or
> even better, an HTMLPanel with styled divs in it?
>
> It's worth trying to keep it simple if you can. Maybe you can't.
>
> Or have a look at the new UiBinder and stick divs in that.
>
> Ian
>
>
http://examples.roughian.com
>
> 2009/10/23 Bryan Vergato <
bryan.verg...@gmail.com>