Hi,
If you are using plain js on client side, I think cometd is perfect to
you. With cometd you can publish in a channel an event on server side
(CometdPublisher - wicket-contrib-Dojo). On your client you subcribe to
a channel(CometdBehavior - wcd too) and when datas are published on
server side, a js method in triggered (client side). This js method is
what you want so it can contain code to update your GMap.
Take a look at www.cometd.org and
http://weblogs.java.net/blog/jfarcand/archive/2007/02/gcometd_introdu_1.html
and in Wicket-contrib-dojo sources :
https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-dojo/.
I started to integrate it in wicket-contrib-dojo (CometdBehavior,
CometdPublisher). But it is still under developpement, any contributions
are welcome ;)
I don't know xavier's pushing implementation but it can also feet to you
need ;)
Cheers
--
Vincent Demay
http://www.demay-fr.net/blog/
Xavier Hanin a écrit :
On 3/6/07, *Peter Neubauer* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi there,
I am trying to push out events that contain the moving locations of a
users buddies, so I can update the GMap on the page using plain JS and
the GMarkerManager.
Right now I am using Pushlet for this, but that has the disadvantage
that it is not integrated into Wicket, and it uses a generic broadcast
mechanism, much like JMS subscribing to topics from JS.
Is there any way to get this functionality working using Wicket, e.g.
the GMap not being reloaded, just moving the markers on a pull/push
interval?
Thanks for any hints!
I'm also in need of such things, and I've started a thread about that
last week:
http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009
As you see I'd like to implement two ways to do that, one simple
purely wicket based, and another more scalable requiring dojo. In your
case I don't know much about your map, but with the implementation I
propose you can send javascript as you would on an AjaxRequestTarget,
so I guess it should be ok. I already have an first implementation
(the simple one, pure wicket), but last time I checked it wasn't
working due to a bug in wicket (see WICKET-343). But if you want I can
share this implementation with you (I think I will even create an
issue in JIRA with the patch attached, even if it doesn't work with
the wicket 1.x branch right now).
- Xavier
/peter
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
_______________________________________________
Wicket-user mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wicket-user
<https://lists.sourceforge.net/lists/listinfo/wicket-user>
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user