Return-Path: Delivered-To: apmail-wicket-users-archive@locus.apache.org Received: (qmail 10690 invoked from network); 1 Dec 2008 12:29:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 12:29:03 -0000 Received: (qmail 66827 invoked by uid 500); 1 Dec 2008 12:29:12 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 66800 invoked by uid 500); 1 Dec 2008 12:29:12 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 66788 invoked by uid 99); 1 Dec 2008 12:29:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 04:29:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Timo.Rantalaiho@ri.fi designates 193.65.190.2 as permitted sender) Received: from [193.65.190.2] (HELO mx.ri.fi) (193.65.190.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 12:27:41 +0000 Received: by mx.ri.fi (Postfix, from userid 1000) id 7E03415B86; Mon, 1 Dec 2008 14:27:56 +0200 (EET) Date: Mon, 1 Dec 2008 14:27:56 +0200 From: Timo Rantalaiho To: users@wicket.apache.org Subject: Re: updating a page when external event occurs Message-ID: <20081201122756.GA4902@ri.fi> References: <20770960.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20770960.post@talk.nabble.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 01 Dec 2008, marino wrote: > I have a simple wicket application built around the DefaulDataTable example. > In the same program I have an Event Listener class which is called outside > the wicket application context. This class produces data that I would like > to show > in the current wicket page, but when I call any operation like add(), > replaceWith() .. Could you show us some code please? "Outside the Wicket application context" sounds strange, does it mean another thread? > WicketRuntimeException: There is no application attached to current thread Just about everything that you do with Wicket components needs a couple of ThreadLocal variables initialised, the most important of them being the Application (with Application.set() ). But to know how to fix your issue exactly we need more data. WicketSessionFilter might help. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org