-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I am trying to implement the below example
books.zkoss.org/wiki/ZKDeveloper'sReference/UIPatterns/LongOperations/ UseEchoEvents
in this example there is "doLongOperation(); //take long to execute". How can i implement this?
The Code is as below:
<window id="w" width="200px" title="Test echoEvent" border="normal">
<attribute name="onLater">
doLongOperation(); //take long to execute
Clients.clearBusy(); //remove the busy message
</attribute>
<button label="Echo Event">
<attribute name="onClick">
Clients.showBusy("Execute..."); //show a busy message to user
Events.echoEvent("onLater", w, null); //echo an event back
</attribute>
</button>
</window>
And i am using the "doLongOperation()" method in vm. But this is not working.
Hello mayuranjan,
Please check the code at the following fiddle (there is an example there):
http://zkfiddle.org/sample/n2ppio/4-Progressmeter-with-EventQueue-and-Timer#source-2
Best Regards,
Darksu
Hi,
if you really want to work with echo events it's easier to implement the long operation in a java composer. (Doing this inside the zul file is not very performant)
here an example:
http://zkfiddle.org/sample/1a6k88i/1-long-operation-with-echo-events
Asked: 2015-09-08 14:06:55 +0800
Seen: 88 times
Last updated: Sep 18 '15
How to stop combining commands in an ajax call ?
zk developmet is esay [closed]
Need help with scrolling horizontal tabs in Right-to-Left (Arabic)
Create tab dynamically, multitab application
Radio button value change on database value
How to implement, each user has its own session timeout time
can you post what you have already?
chillworld ( 2015-09-08 17:24:20 +0800 )editi have updated it in the question.
mayuranjan ( 2015-09-09 04:32:53 +0800 )edit