-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
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