> > Le jeudi 03 juillet 2008 à 16:28 +0200, Frank Bille a écrit : > >> As far as I know it only lives in subversion. I tried it myself a month > >> ago > >> and it is functional: > >> > >> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/ > >> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/ > >
I try to use wicketstuff-push with wicket 1.4-m3, but I can't get it to work. I have checkout wicketsuff-dojo (and examples), modified them to use jetty 7.0.0pre2 and wicket 1.4-m3 and it is OK. Then I co wicketstuff-push and examples, modified them to use the same version of wicket (some errors to correct) and jetty, but I can't get it to work. The examples "A chat using simulated channel based on polling" and "A chat using simulated push based on polling" are working (polling is OK) but I get an NPE when I really use CometdBayeux with test "Basic Cometd tests" : 2008-07-15 16:33:55.466::WARN: Error for /wicketstuff-push-examples/cometd java.lang.Error: [{"channel":"/meta/reconnect","connectionType":"long-polling","clientId":"1nnmumdfsusjgcj3km","connectionId":undefined,"timestamp":null,"id":null}] at org.mortbay.cometd.AbstractCometdServlet.getMessages(AbstractCometdServlet.java:304) at org.mortbay.cometd.continuation.ContinuationCometdServlet.doPost(ContinuationCometdServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.mortbay.cometd.AbstractCometdServlet.service(AbstractCometdS Caused by: java.lang.NullPointerException at org.mortbay.cometd.MessageImpl.put(MessageImpl.java:144) at org.mortbay.cometd.MessageImpl.put(MessageImpl.java:15) at org.mortbay.util.ajax.JSON.parseObject(JSON.java:767) at org.mortbay.util.ajax.JSON.parse(JSON.java:707) at org.mortbay.util.ajax.JSON.parseArray(JSON.java:837) It seems that the "Id" param is null...(from the 7.0.0pre1 sources of cometd : the 7.0.0pre2 did not exists (1)) I didn't find how to correct this... I have search deeply in wicketpush and wicketdojo, and it seems to came from a javascript in wicketstuff-dojo.. I realize that wicketstuff-dojo use dojo 0.4 internally, (I'am not a dojo expert, but the last version seems to be 1.1.1)... So here are my questions : - did anybody successfully manage to use wicketstuff-push with jetty (6.1.11 or 7.0.0pre1)? - wicketstuff-push is it alive? last commit was 15/11/07 ... -and if not what do you use to do reverse ajax with wicket? Note : I already used cometd-bayeux in a Spring MVC Application, so maybe the solution is to use cometd at "low" level ie. with no integration with wicket...? Thanx, 1 : sources of cometd-bayeux artefact (only in version 7.0.0pre1): http://repo1.maven.org/maven2//org/mortbay/jetty/cometd-bayeux/7.0.0pre1/ -- Julien Graglia --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]