Revision history [back]

click to hide/show revision 1
initial version

answered 2011-04-01 04:17:13 +0800

mjablonski gravatar image mjablonski

http://www.jease.org/

Please read:

http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/UI%20Patterns/Long%20Operations

The simple approach (if you don't need to inform the user when the work is finished)... call runReports as dedicated Thread:

public void myBtn_onClick() throws Exceptions { 
  new Thread(new Runnable() {
    public void run() {
        runReports();
    }
  }).start();
  Messagebox.show("Reports are being run and you'll get email notification shortly....");

Cheers, Maik

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More