Johan Compagner a écrit :
> first what is so special about that code?
The second implementation uses cometd which is a dojo fundation project 
fully integrated in jetty 6 and using Bayeux protocol (based on json to 
make server/clients communications).
> What is the protocol you are talking about
> I haven't really looked at it yet at this time but i will.
It is Bayeux as I said. which run in a différent servlet as the wicket 
one (or filter) on server side and an hidden iframe on the client side 
receives events trigerring javascript function.
The communication between servlet and iframe is done via JSON.
>
> How i see it if possible is just an open channel
> and over it flows the wicket ajax stuff (so the xml that wicket ajax 
> can parse)
I think it is possible but need much more work that could be 
interresting. But with différents implementation for each server : 
tomcat != jetty != blueFish etc...
So it needs a différent implmentation for each server : 
jettyCometServlet, tomcatJettyServlet, etc... and hopefully using the 
same client-side api.
>
> this way if something is triggered on the server the server can push 
> component rerender changes
> to the clients who are displaying those components.
If we writte ourself the *CometServlet we can image to write a client 
side wicket-comet.js allowing to wrap *CometServlet response in existing 
wicket-ajax. I think it could be fine ;)

--
Vincent
>
> johan
>
>
> On 3/20/07, *Vincent Demay* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Johan Compagner a écrit :
>     > yes i want to have it simple and build in in wicket-ajax.js if
>     possible
>     > (at least support for it it could be and extra small js:
>     wicket-cometd.js)
>     well, I understand what you mean, but comted ( www.cometd.com
>     <http://www.cometd.com>) is a dojo
>     fundation subproject. So if we want to write our own client-side
>     library. first we have to duplicate Dojo cometd code(
>     http://archive.dojotoolkit.org/nightly/src/io/cometd.js ) which can be
>     done with some difficulties because it depends on a lot of other dojo
>     libs. But the worst problem comes form the protocol. It is a dojo
>     fundation subproject so if protocol change we need to maintain our
>     cometd client-side implementation. It seems to be an heavy work to do!
>
>     On the other hand I well understand you prefer keeping control of code
>     you integrate in Wicket (and pushing is an interresting stuff for
>     wicket). So maybe we need to thinking more about that and on impact on
>     the future. WDYT?
>
>     --
>     Vincent
>
>     >
>     > johan
>     >
>     >
>     > On 3/20/07, * Igor Vaynberg* < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     > <mailto:[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>> wrote:
>     >
>     >     this is a great start. my idea vision of this implementation is
>     >     something that doesnt depend on dojo and something that has
>     a very
>     >     similar requesttarget to ajaxrequesttarget that can transfer
>     value
>     >     pairs _or_ markup.
>     >
>     >     but this is definetely a great start.
>     >
>     >     -igor
>     >
>     >
>     >     On 3/20/07, *Vincent Demay* < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     >     <mailto:[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>>> wrote:
>     >
>     >         Hi all,
>     >
>     >         I made a new project in wicket-stuff(sourceforge) called
>     >         wicket-contrib-push.
>     >         This project allows pushing of events on server side in a
>     >         simulated bus
>     >         between server and all client. This pushing has 2
>     >         implementations :
>     >         * The first based on Xavier Hanin work which is based on
>     >         timerBehavior
>     >         and simulates a bus with an EventStore (see
>     >        
>     
> http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009
>
>     >        
>     
> <http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009
>     
> <http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009>>
>     >         and
>     >        
>     
> http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668
>     
> <http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668>
>     >        
>     
> <http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668>)
>
>     >         * The second one using cometd( www.cometd.org
>     <http://www.cometd.org>
>     >         <http://www.cometd.org>) and dependant of
>     >         wicket-contrib-dojo
>     >
>     >
>     >         The way to publish and listen to events is the following
>     (with
>     >         cometd
>     >         and timer implementation):
>     >
>     >         //Somewhere I publish a new event. It can be for example
>     in on
>     >         click of
>     >         a ajax link or elsewhere :
>     >         IPushPublisher publisher = new
>     IPushPublisher("aBusChannel");
>     >         IPushEvent event = new IPushEvent()
>     >         event.add("akey", "myvalue");
>     >         publisher.publish(event);
>     >
>     >         //My page can be aware of event in aBusChannel :
>     >         IPushBehavior behavior = new IPushBehavior("aBusChannel"){
>     >             public abstract void onEvent(String channel, Map<String,
>     >         String>
>     >         datas, IPushTarget target){
>     >                //Triggered when event is publish by publisher
>     >                //IPushTarget has the sapme prototype as
>     AjaxRequestTarget
>     >             }
>     >         }
>     >
>     >
>     >         WDYT?, Any comments, feelings?
>     >
>     >
>     >         PS : sources are available on svn :
>     >        
>     
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push
>     
> <https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push>
>     >        
>     
> <https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push
>     
> <https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push>>
>     >
>     >        
>     
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples
>     
> <https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples>
>     >        
>     
> <https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples
>     
> <https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples>>
>     >
>     >         --
>     >         Vincent Demay
>     >         http://www.demay-fr.net/blog
>     >
>     >
>     >
>     >
>     >        
>     -------------------------------------------------------------------------
>
>     >
>     >         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>
>     >        
>     <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
>     >         Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     >         <mailto: Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>>
>     >         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
>     
> <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
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>>
>     >     _______________________________________________
>     >     Wicket-user mailing list
>     >     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     >     <mailto:Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>>
>     >     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
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Wicket-user mailing list
>     > Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     > 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
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     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
> Wicket-user@lists.sourceforge.net
> 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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to