PrimeFaces 4.0 Push not working; need Atmosphere 2.0.2

UI Components for JSF
smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

03 Oct 2013, 22:11

PrimeFaces 4.0 Push is no longer working for me while using Tomcat 7.0.42 (TomEE 1.6.0 snapshot).

PrimeFaces 4.0.RC1 Push works fine with Atmosphere (runtime) 2.0.0, and I experienced a few errors with Atmosphere 2.0.1.

I see no error messages when using PrimeFaces 4.0 Push. anyone else seeing this behavior on Glassfish 3.1.2.2 or Glassfish 4.0, jboss, or other containers?

I think there were a few changes to PrimeFaces Push between PrimeFaces 4.0.RC1 and PrimeFaces 4.0 release, and now it is not working for me. I tried to change my PrimeFaces Push config in web.xml and tried to use Atmosphere 2.0.0, 2.0.1, and 2.0.2 snapshot, but PrimeFaces 4.0.RC1 does not work...anymore. :(
Last edited by smithh032772 on 06 Nov 2013, 06:25, edited 2 times in total.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

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

03 Oct 2013, 22:29

Jeanfrancois upgraded to atmosphere 2.0.1 - the JS and the java dependency.
Maybe you can ask him.
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

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

03 Oct 2013, 22:43

Yes. We are discussing at URL below.

https://groups.google.com/forum/?fromgr ... XIWNu5Wu-w

The conversation discusses one exception and then we start discussing PrimeFaces 4.0 Push.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

rikup
Posts: 459
Joined: 29 Jan 2013, 14:27

04 Oct 2013, 09:14

I can't (yet) test with JBoss, but at least the showcase counter/FacesMessage examples are not working. I tested with Firefox 23.0.1 on OS X 10.8.4. There were no errors in browser console, developer tools show that POST requests were submitted but there were no FacesMessages and counter didn't increment.

But if I refresh the page, then the counter shows right number.
PrimeNG 2.0.0
Angular 2.4.5

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

04 Oct 2013, 10:21

Correct. That is what I experienced and those were my test results, too, for/with Chrome.

Of course, ajax post from client to server, is working (to update value on server), but server push to client, is broke (some regression , somewhere).

That is why browser refresh showed the updated counter value, which did an http get, and referenced bean getter method.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

jfarcand
Posts: 19
Joined: 02 Feb 2010, 20:23

04 Oct 2013, 15:05

Use Atmosphere 2.0.2 with PF 4.0. Previous version of Atmosphere won't work.

-- Jeanfrancois

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

04 Oct 2013, 16:09

jfarcand wrote:Use Atmosphere 2.0.2 with PF 4.0. Previous version of Atmosphere won't work.

-- Jeanfrancois
Confirmed,

atmosphere-runtime-2.0.2-20131004.133732-13.jar

works with PrimeFaces 4.0. Thanks! :)
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

rikup
Posts: 459
Joined: 29 Jan 2013, 14:27

07 Oct 2013, 11:32

jfarcand wrote:Use Atmosphere 2.0.2 with PF 4.0. Previous version of Atmosphere won't work.

-- Jeanfrancois
Funny, it seemed to work fine with JBoss AS 7.2 :D
PrimeNG 2.0.0
Angular 2.4.5

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

07 Oct 2013, 12:20

rikup wrote:Funny, it seemed to work fine with JBoss AS 7.2 :D
really? interesting!
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

csyperski
Posts: 103
Joined: 16 Apr 2010, 14:36

29 Oct 2013, 19:33

jfarcand wrote:Use Atmosphere 2.0.2 with PF 4.0. Previous version of Atmosphere won't work.

-- Jeanfrancois
If this is the case the documentation seems to suggest using 2.0.1. From the Push chapter in the PDF doc:
<dependency>
<groupId>org.atmosphere</groupId>
<artifactId>atmosphere-runtime</artifactId>
<version>2.0.1</version>
</dependency>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests