Korbinian Bachl a écrit : > Hi, > > i find it great that you put it to wicket-stuff! However im sorry that i > havent understood what this is good for - can you please give me some usage > example? I mean what is the usecase of a bus-simulation? > > Regards, > > Korbinian >
Hi I will try to found out simple examples : Imagine you make a instant messanging application with wicket. When somebody will connect to the application, you want to be notified in client side. Pushing can send an event to the client side to update the list of connecting people. Another exemple. In a shared crud application if you (person1) are working on an item (client side), you want to be notified if somebody else (person2) has modified the same item as you. So when person2 save his item, person1 will be notified that the item has changed and can propose a merge between what person1 is doing and what person2 has saved Hope what I said help you to understand ;) -- Vincent Demay http://www.demay-fr.net/blog > > >> -----Ursprüngliche Nachricht----- >> Von: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] Im Auftrag >> von Vincent Demay >> Gesendet: Dienstag, 20. März 2007 10:13 >> An: [email protected] >> Betreff: [Wicket-user] Serveur pushing implementation >> >> 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-%28ak >> > a-push%29-tf3321420.html#a9234009 > >> and >> http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicke >> > t--tf3354017.html#a9327668) > >> * The second one using cometd(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-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 > >> _______________________________________________ >> 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 > ------------------------------------------------------------------------- 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
