Return-Path: Delivered-To: apmail-wicket-users-archive@locus.apache.org Received: (qmail 20124 invoked from network); 1 Dec 2008 13:04:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 13:04:59 -0000 Received: (qmail 25120 invoked by uid 500); 1 Dec 2008 13:05:09 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 25086 invoked by uid 500); 1 Dec 2008 13:05:09 -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 25075 invoked by uid 99); 1 Dec 2008 13:05:09 -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 05:05:09 -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 13:03:40 +0000 Received: by mx.ri.fi (Postfix, from userid 1000) id 738B5FBC2; Mon, 1 Dec 2008 15:04:26 +0200 (EET) Date: Mon, 1 Dec 2008 15:04:26 +0200 From: Timo Rantalaiho To: users@wicket.apache.org Subject: Re: updating a page when external event occurs Message-ID: <20081201130426.GA19141@ri.fi> References: <20770960.post@talk.nabble.com> <20771378.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20771378.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: > // this is the event listener method itself, called from the Gigaspaces > library > // when some eventon their space is detected It really sounds like it would be from within another thread, right? The best way would be to refactor your code so that Wicket code would only make the hierarchy change during the request cycle. To be able to do it like you're trying, you would have to emulate request cycle processing in the notify() method (at least set up the Application ThreadLocal), but it doesn't sound as good as the other way. 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