-
30 Jul 2010 9:26 AM #1
[CLOSED] AssertionError in BorderLayout (Hosted Mode)
[CLOSED] AssertionError in BorderLayout (Hosted Mode)
When changing layout of a LayoutContainer from BorderLayout to some other layout the following exception occurs:
java.lang.AssertionError: BorderLayout needs a LayoutContainer
at com.extjs.gxt.ui.client.widget.layout.BorderLayout.setContainer(BorderLayout.java:162)
at com.extjs.gxt.ui.client.widget.Container.setLayout(Container.java:597)
at com.extjs.gxt.ui.client.widget.LayoutContainer.setLayout(LayoutContainer.java:281)
....
The code that does this:
public void onModuleLoad(){
final Viewport viewport = new Viewport();
viewport.setLayout(new BorderLayout());
Label label = new Label("Some Text");
viewport.add(label);
RootPanel.get().add(viewport);
Timer t = new Timer() {
@Override
public void run() {
MessageBox.alert("Alert", "Change layout", new Listener<MessageBoxEvent>() {
@Override
public void handleEvent(MessageBoxEvent be) {
viewport.setLayout(new CenterLayout());
}
});
}
};
t.schedule(1000);
viewport.layout();
}
GXT Version: 2.1.1
GWT version: 2.0.4
Mode: Hosted
Regards
Rupesh
-
30 Jul 2010 9:50 AM #2
This should already be fixed in a later version. Try to update to GXT 2.2 beta1 for example
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[CLOSED] [1.1.3] Dispatcher and Hosted Mode
By amundb in forum Ext GWT: Bugs (1.x)Replies: 3Last Post: 23 Jan 2009, 12:36 PM -
Simple BorderLayout example works in Hosted mode/IE, blank screen for everything else
By dpovey in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 30 Nov 2008, 9:22 PM -
[CLOSED] Hosted mode layout not working
By algesten in forum Ext GWT: Bugs (1.x)Replies: 3Last Post: 11 Sep 2008, 5:38 AM -
[CLOSED] Differences between Hosted mode and Web Mode
By zaccret in forum Ext GWT: Bugs (1.x)Replies: 4Last Post: 23 May 2008, 1:06 AM


Reply With Quote