java - Window close issues in gwt -ext -


hello using gwt-ext in application.in application session time 5 minutes. issues if window open render information & in between session goes out user logged out opened window not closing in case.

so want know how close opened window while session timed out , user logged out.

thanks in advance.

you can follow these steps close tour open window @ sesssion time out:

  1. whenever make object of window: assign id window.

    window.setid("mywindow"); 
  2. the place @ you're handling session time out, place code:

    extelement extelement = ext.get("mywindow"); if (extelement != null && ext.getcmp(extelement) != null     && ext.getcmp(extelement) instanceof window) {     window window = (window) ext.getcmp(extelement);     window.close(); } 

Comments