PF Push counter/chat

UI Components for JSF
User avatar
kataras
Posts: 42
Joined: 12 Apr 2011, 21:51
Location: Xanthi/Greece
Contact:

22 Sep 2011, 18:43

Push examples ( chat/counter) is working at examples but when i test them to my site aren't working ...;/ can you tell me what can i do whrong ?
PrimeFaces 3.0 RC1 version . Netbeans 7.0.1 . Apache Tomcat 7.0.22 . Firefox 7.0.1 & Google Chrome ,
Mandriva 2011 & Windows Home Server 2011 & Windows 8 Developer Preview .

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Sep 2011, 21:17

You need to setup pushserver via context param in web.xml, one easy way to setup is using online one.

Code: Select all

ws://www.primefaces.org:9090/prime-pushserver

User avatar
kataras
Posts: 42
Joined: 12 Apr 2011, 21:51
Location: Xanthi/Greece
Contact:

23 Sep 2011, 06:48

I tested it to ..but i will test it to again :) thanks i will post if works
PrimeFaces 3.0 RC1 version . Netbeans 7.0.1 . Apache Tomcat 7.0.22 . Firefox 7.0.1 & Google Chrome ,
Mandriva 2011 & Windows Home Server 2011 & Windows 8 Developer Preview .

User avatar
kataras
Posts: 42
Joined: 12 Apr 2011, 21:51
Location: Xanthi/Greece
Contact:

23 Sep 2011, 06:53

<context-param>
<param-name>primefaces.PUSH_SERVER</param-name>
<param-value>ws://www.primefaces.org:9090/prime-pushserver</param-value>


</context-param>

i write this on web.xml and again doesn't work ;/ i tested with all scopes on controller ( application , view , request ) doesnt work ;/ i have the save state to server , i tested with client too , isnt working too ;/
PrimeFaces 3.0 RC1 version . Netbeans 7.0.1 . Apache Tomcat 7.0.22 . Firefox 7.0.1 & Google Chrome ,
Mandriva 2011 & Windows Home Server 2011 & Windows 8 Developer Preview .

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Sep 2011, 09:37

Sorry can't help more, same setup works for me.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

23 Sep 2011, 10:45

Hi kataras,

Are you sure your browser support WebSocket? You nothing told about your browser. Check it at first online here http://websocketstest.com/
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
kataras
Posts: 42
Joined: 12 Apr 2011, 21:51
Location: Xanthi/Greece
Contact:

23 Sep 2011, 13:30

yeah i made the test , firefox is ok with ws , http://websocketstest.com/result/142406 .
hmmm ... the push is working for u .?

look my web.xml :
http://pastebin.com/nbxA0bcC

look my index.xhtml :
http://pastebin.com/xdNc2crz

look my GloabalCounter.java controller :
http://pastebin.com/RGjd0RPj

IDE: NETBEANS 7.0.1
BROWSER : FIREFOX 6.0.2
WEBSERVER : APACHE TOMCAT 7.0.19
PRIMEFACES VERSION : 22/09/2011 RC1
PrimeFaces 3.0 RC1 version . Netbeans 7.0.1 . Apache Tomcat 7.0.22 . Firefox 7.0.1 & Google Chrome ,
Mandriva 2011 & Windows Home Server 2011 & Windows 8 Developer Preview .

User avatar
kataras
Posts: 42
Joined: 12 Apr 2011, 21:51
Location: Xanthi/Greece
Contact:

24 Sep 2011, 14:35

can't help me ? i realy need it ;/
can you help me with teamviewer (remote desktop) or something like this ?
PrimeFaces 3.0 RC1 version . Netbeans 7.0.1 . Apache Tomcat 7.0.22 . Firefox 7.0.1 & Google Chrome ,
Mandriva 2011 & Windows Home Server 2011 & Windows 8 Developer Preview .

User avatar
kataras
Posts: 42
Joined: 12 Apr 2011, 21:51
Location: Xanthi/Greece
Contact:

25 Sep 2011, 18:09

OUF I DID IT it works !!
leader , optimus , you tell me whrong info :p
the web.xml is :

<context-param>
<param-name>primefaces.PUSH_SERVER_URL</param-name>
<param-value>ws://www.primefaces.org:9090/prime-pushserver</param-value>
</context-param>

i searched and found on : http://code.google.com/p/primefaces/sou ... 469&r=5469
. but thanks you for your help ! very good work !

But now i have to learn web services on java too ( i knew on C# soap .. ) here is ws .. i will learn and i am thanking u again :)
PrimeFaces 3.0 RC1 version . Netbeans 7.0.1 . Apache Tomcat 7.0.22 . Firefox 7.0.1 & Google Chrome ,
Mandriva 2011 & Windows Home Server 2011 & Windows 8 Developer Preview .

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

25 Sep 2011, 21:14

websocket has nothing to do with soap and else. SOAP exists in java too
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests