wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Timer-based update to various regions in a page - best approach?
Date Thu, 07 Mar 2013 10:36:35 GMT

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 <di@fh-wedel.de> 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
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message