It's not a secret anymore!
The moose likes Threads and Synchronization and the fly likes how run background method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "how run background method" Watch "how run background method" New topic

how run background method

sepand minoo

Joined: Dec 25, 2012
Posts: 2
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 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

Joined: Aug 07, 2007
Posts: 2832
Welcome to the Ranch.

Can you post some code showing what you have implemented and the full error messages you are getting.
I agree. Here's the link:
subject: how run background method
jQuery in Action, 3rd edition