Revision history [back]

click to hide/show revision 1
initial version

asked 2015-09-08 14:06:55 +0800

mayuranjan gravatar image mayuranjan

echo event in ZK - long operations

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.

echo event in ZK - long operations

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 execute". How can i implement this.this?

echo event in ZK - long operations

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.

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