Results 1 to 2 of 2

Thread: [CLOSED] AssertionError in BorderLayout (Hosted Mode)

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Feb 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default [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

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    This should already be fixed in a later version. Try to update to GXT 2.2 beta1 for example

Similar Threads

  1. [CLOSED] [1.1.3] Dispatcher and Hosted Mode
    By amundb in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 23 Jan 2009, 12:36 PM
  2. Replies: 1
    Last Post: 30 Nov 2008, 9:22 PM
  3. [CLOSED] Hosted mode layout not working
    By algesten in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 11 Sep 2008, 5:38 AM
  4. [CLOSED] Differences between Hosted mode and Web Mode
    By zaccret in forum Ext GWT: Bugs (1.x)
    Replies: 4
    Last Post: 23 May 2008, 1:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •