Re: Wicket 6 Websocket Example

2012-09-18 Thread Martin Grigorov
On Tue, Sep 18, 2012 at 12:31 AM, sfwicket li...@bgb.net wrote:

 Thanks... the Tomcat artifact could be switched to 0.2 as well - I know its
 commented out but would make it easier switching from Jetty to Tomcat.

Done.



 Curious though in the example, ChartsResourceReference.java:


 JavaScriptHeaderItem.forReference(WicketWebSocketJQueryResourceReference.get())

 presumably adds:



 to the header, but it also seems that by adding a WebSocketBehavior to the
 Panel, this is automatically included. Just trying to figure the bare
 minimum to get a WebsocketBehavior to work. Is adding this resource
 reference necessary?


Wicket filters duplicate header contributions. This way both of them
declare that they depend on wicket-websocket-jquery.js but only one
contribution is actually done.

 Thanks





 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Websocket-Example-tp4652059p4652067.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket 6 Websocket Example

2012-09-17 Thread sfwicket


Is there a working Wicket 6.0.0 Websocket example written in Java? The  
only demo provided here on the wiki page is written in Scala.


https://cwiki.apache.org/WICKET/wicket-native-websockets.html

The other demo I found has outdated dependencies on Wicket  
6.0-SNAPSHOT and wicket-native-websocket-tomcat 0.1-SNAPSHOT and will  
not compile after altering these dependencies to 6.0.0 and 0.2  
respectively.


Can someone point me to a working Wicket 6.0.0 Websocket demo?

Thanks!


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6 Websocket Example

2012-09-17 Thread Martin Grigorov
Hi,

http://wicketinaction.com/2012/07/wicket-6-native-websockets/

This is the Java example.
What is the problem with compiling it ?

On Mon, Sep 17, 2012 at 11:13 PM, sfwicket li...@bgb.net wrote:

 Is there a working Wicket 6.0.0 Websocket example written in Java? The only
 demo provided here on the wiki page is written in Scala.

 https://cwiki.apache.org/WICKET/wicket-native-websockets.html

 The other demo I found has outdated dependencies on Wicket 6.0-SNAPSHOT and
 wicket-native-websocket-tomcat 0.1-SNAPSHOT and will not compile after
 altering these dependencies to 6.0.0 and 0.2 respectively.

 Can someone point me to a working Wicket 6.0.0 Websocket demo?

 Thanks!


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6 Websocket Example

2012-09-17 Thread sfwicket




ChartsResourceReference.java will not compile with a missing import on:

import org.apache.wicket.request.resource.ExternalUrlResourceReference;

This is with the Wicket version set in the pom.xml as either  
6.0-SNAPSHOT (as it currently is) or changing it to 6.0.0.


also, the pom.xml will not resolve this dependency:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-native-websocket-tomcat/artifactId
version0.1-SNAPSHOT/version
/dependency

but I found version 0.2 or 0.3-SNAPSHOT do resolve. similarly for the  
wicket-native-websocket-jetty artifact.



Quoting Martin Grigorov mgrigo...@apache.org:


Hi,

http://wicketinaction.com/2012/07/wicket-6-native-websockets/

This is the Java example.
What is the problem with compiling it ?

On Mon, Sep 17, 2012 at 11:13 PM, sfwicket li...@bgb.net wrote:


Is there a working Wicket 6.0.0 Websocket example written in Java? The only
demo provided here on the wiki page is written in Scala.

https://cwiki.apache.org/WICKET/wicket-native-websockets.html

The other demo I found has outdated dependencies on Wicket 6.0-SNAPSHOT and
wicket-native-websocket-tomcat 0.1-SNAPSHOT and will not compile after
altering these dependencies to 6.0.0 and 0.2 respectively.

Can someone point me to a working Wicket 6.0.0 Websocket demo?

Thanks!


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6 Websocket Example

2012-09-17 Thread Martin Grigorov
This class has been renamed to UrlResourceReference. Remove 'External'
and it should work.

On Mon, Sep 17, 2012 at 11:41 PM, sfwicket li...@bgb.net wrote:



 ChartsResourceReference.java will not compile with a missing import on:

 import org.apache.wicket.request.resource.ExternalUrlResourceReference;

 This is with the Wicket version set in the pom.xml as either 6.0-SNAPSHOT
 (as it currently is) or changing it to 6.0.0.

 also, the pom.xml will not resolve this dependency:

 dependency
 groupIdorg.apache.wicket/groupId

 artifactIdwicket-native-websocket-tomcat/artifactId
 version0.1-SNAPSHOT/version
 /dependency

 but I found version 0.2 or 0.3-SNAPSHOT do resolve. similarly for the
 wicket-native-websocket-jetty artifact.



 Quoting Martin Grigorov mgrigo...@apache.org:

 Hi,

 http://wicketinaction.com/2012/07/wicket-6-native-websockets/

 This is the Java example.
 What is the problem with compiling it ?

 On Mon, Sep 17, 2012 at 11:13 PM, sfwicket li...@bgb.net wrote:


 Is there a working Wicket 6.0.0 Websocket example written in Java? The
 only
 demo provided here on the wiki page is written in Scala.

 https://cwiki.apache.org/WICKET/wicket-native-websockets.html

 The other demo I found has outdated dependencies on Wicket 6.0-SNAPSHOT
 and
 wicket-native-websocket-tomcat 0.1-SNAPSHOT and will not compile after
 altering these dependencies to 6.0.0 and 0.2 respectively.

 Can someone point me to a working Wicket 6.0.0 Websocket demo?

 Thanks!


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6 Websocket Example

2012-09-17 Thread sfwicket

got it - thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Websocket-Example-tp4652059p4652064.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6 Websocket Example

2012-09-17 Thread Martin Grigorov
Good!
I've updated the code of the demo apps in my repository.

On Mon, Sep 17, 2012 at 11:57 PM, sfwicket li...@bgb.net wrote:

 got it - thanks!



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Websocket-Example-tp4652059p4652064.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 6 Websocket Example

2012-09-17 Thread sfwicket

Thanks... the Tomcat artifact could be switched to 0.2 as well - I know its
commented out but would make it easier switching from Jetty to Tomcat.


Curious though in the example, ChartsResourceReference.java:

   
JavaScriptHeaderItem.forReference(WicketWebSocketJQueryResourceReference.get())

presumably adds:



to the header, but it also seems that by adding a WebSocketBehavior to the
Panel, this is automatically included. Just trying to figure the bare
minimum to get a WebsocketBehavior to work. Is adding this resource
reference necessary?

Thanks





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Websocket-Example-tp4652059p4652067.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org