Actually this is not my problem. You update component just once after some
time while I need non-stop updating. I found a "semi-solution". I am using
ScheduledThreadPoolExecutor.

final ExecutorService service = new ScheduledThreadPoolExecutor(100) {
        protected void beforeExecute(final Thread t, final Runnable r) {
            Application.set(getApplication());
        }
        protected void afterExecute(final Runnable r, final Throwable t) {
            Application.unset();
        }
    };
service.submit(chat);

but......the thread is submitted, but it is not executed. I'm debugging
and.....there is nothing that calls my run() method in my thread. So how can
execute this thread which is submited in service.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Updating-a-component-from-custom-thread-or-why-getRequestCycle-returns-null-tp4393783p4406892.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to