1. #11
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default


    How can I stop a border layout remembering state between sessions?

    Maybe it's becuase I've put id's on my components, but every time I restart my app, all my border layouts are the in the same "state" as in the last session - even if I restart firefox / hosted mode!

    Any thoughts?

  2. #12
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    BorderLayout.class

    Code:
      /**
       * True to enabled state (defaults to true). When true, expand / collapse and
       * size state is persisted across user sessions.
       * 
       * @param enableState true to enable state
       */
      public void setEnableState(boolean enableState) {
        this.enableState = enableState;
      }

  3. #13
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default


    Thanks - it works but I'd like to do something in between - remember state during the session and forget it between sessions...

    The code to disable state is:

    Code:
    BorderLayout borderLayout = new BorderLayout();
    borderLayout.setEnableState(false);
    layoutContainer = new LayoutContainer(borderLayout);