Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2670

DesktopCleanup of ZK is not called in IE 9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 7.0.3, 7.0.5
    • Fix Version/s: None
    • Component/s: Browser Issue, Components
    • Labels:
      None
    • Environment:

      zkee-bin-eval-7.0.5-FL-2015-03-19
      IE 9

      Description

      I have encountered one interesting question about "DesktopCleanup"

      There are two ways to do something after closing the browser:

      public class MyDesktopCleanup implements DesktopCleanup {
      public void cleanup(Desktop arg0) throws Exception

      { System.out.println("Close browser======"); }

      }
      then write into zk.xml: listener description:MyDesktopCleanup listener-class:com.text.MyDesktopCleanup

      ============= or, you can do this: ==========================

      @Override
      public void doAfterCompose(Component comp) throws Exception {
      super.doAfterCompose(comp);

      comp.getDesktop().addListener(new DesktopCleanup() {
      public void cleanup(Desktop desktop) throws Exception

      { System.out.println("Close browser======"); }

      });
      }
      I have test these two methods in Chrome and firefox, they both operated well and print :"Close browser======". But if I run this in IE 9, something interesting happened: after running the web project and I open IE 9 to access the web page. Before closing IE, I do nothing, then the DesktopCleanup is called and it is right. However, if I do something like upload files on web page, after closing IE, the DesktopCleanup would be not called.

      So, how can I resolve this problem ? Thank you very much!

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            gds1987 gds1987
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: