Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how run background method  RSS feed

 
sepand minoo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need when user click the button some of code run in server and client doesn't wait too long so i decide use this method in link http://www.javacodegeeks.com/2012/10/advanced-zk-asynchronous-ui-updates-and-background-processing-part-2.html but i have 2 problems:
when defined "private final EventListener<event> eventListener;"
the error is org.zkoss.zk.ui.event.EventListener dese not take parameter and secound problem is when pass event class to executation.schedule the third parameter doesn't event.please help me</event>
like this
Executions.schedule(desktop, eventListener, new StepEvent(object o, list<String> s, list<String> b,String d ));
the error is :class StepEvent isn't event but this article use similar calss name SecondStepEvent
stepEvent extends Event
 
Tony Docherty
Bartender
Posts: 3200
78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Can you post some code showing what you have implemented and the full error messages you are getting.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!