Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01215DD0C for ; Thu, 7 Mar 2013 10:37:20 +0000 (UTC) Received: (qmail 57965 invoked by uid 500); 7 Mar 2013 10:37:18 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 57897 invoked by uid 500); 7 Mar 2013 10:37:18 -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 57887 invoked by uid 99); 7 Mar 2013 10:37:18 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 10:37:18 +0000 Received: from localhost (HELO mail-wg0-f52.google.com) (127.0.0.1) (smtp-auth username mgrigorov, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Mar 2013 10:37:17 +0000 Received: by mail-wg0-f52.google.com with SMTP id 12so479111wgh.19 for ; Thu, 07 Mar 2013 02:37:16 -0800 (PST) X-Received: by 10.194.103.72 with SMTP id fu8mr53026964wjb.42.1362652636031; Thu, 07 Mar 2013 02:37:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.152.81 with HTTP; Thu, 7 Mar 2013 02:36:35 -0800 (PST) In-Reply-To: <20130307102013.GF24318@fh-wedel.de> References: <20130307102013.GF24318@fh-wedel.de> From: Martin Grigorov Date: Thu, 7 Mar 2013 12:36:35 +0200 Message-ID: Subject: Re: Timer-based update to various regions in a page - best approach? To: users@wicket.apache.org, Martin Dietze Content-Type: multipart/alternative; boundary=089e010d861052b63b04d7534afd --089e010d861052b63b04d7534afd Content-Type: text/plain; charset=UTF-8 Hi, You can use wicket-atmosphere instead Socket.io. Or you can use one Ajax timer that broadcasts an event to all components in the page and each component can decide whether to add itself to the target or not. On Thu, Mar 7, 2013 at 12:20 PM, Martin Dietze wrote: > My customer wants me to rewrite an existing application in a > way, that the various regions (drag-and-droppable panels) are > all updated every xy seconds (most of these panels contain > things like list views with search results, the user's mailbox > etc.). > > Following a - what I would call - naive approach, one could > trigger updates via Ajax every xy seconds for each panel > individually. However I see the risk here of creating too many > simultaneous network connections. > > Since I've never build anything like this before, I'd appreciate > some opinions / advice, how to approach this problem the "Wicket > way". > > Someone mentioned socket.io (which somewhat softens the client > side prerequisites of native WebSockets), but is there any > wrapper / adapter for Wicket yet? Also I feel a bit uneasy here, > as the application already exists, so that the refactoring > necessary to get the desired result might grow too high here? > > Another idea that has crossed my mind was a "central Ajax > updater", that collects instances of all components needing an > update and then triggers a rerender for all of them at the same > time. I have not tried this, and I wonder if it is a good idea > at all (would it have a negative effect on user experience?). > > I'd love to read your comments :) > > M'bert > > -- > ----------- / http://herbert.the-little-red-haired-girl.org / > ------------- > =+= > This parrot is no more. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --089e010d861052b63b04d7534afd--