I have been adding GXT components to my existing GWT application.
When I tried to use BorderLayoutContainer to create hidable areas, I ran into the exception:
Caused by: java.lang.ClassCastException: com.sencha.gxt.widget.core.client.container.BorderLayoutContainer cannot be cast to com.sencha.gxt.widget.core.client.ContentPanelWhen I looked at the code, it appears that BorderLayoutContainer requires the top level component of the area to be a ContentPanel. Once I put ContentPanel into my areas, things work.
I do see ContentPanel being used in the BorderLayoutContainer.
But I see nothing in any documentation I have found that says that the North/South/East/West areas must contain a ContentPanel for them to have the ability to be hidden.
My questions: Is it correct that ContentPanel is required? If so, why is this not explicitly stated in the javadoc and other documentation (examples are nice but they are not a substitute for documentation particularly when something is required)?