PrimeFaces 3.X does not work with Spring Webflow

UI Components for JSF
smaines
Posts: 23
Joined: 08 Feb 2012, 19:14

10 Mar 2012, 06:23

Nobody's mentioned to me that WebFlow 2.3.0 is broken: please, tell me more! Any links?

I have not tried downgrading to WebFlow 2.2.1, though I have upgraded everything to latest production values (SWF, Spring Security, JSF, Hibernate), and even snapshots (e.g. SWF 2.3.1): all work nicely together with PrimeFaces 2.2.1, but fail with any PrimeFaces 3.X, leaving me guessing what exactly one is supposed to do to upgrade a very simple app from PrimeFaces 2.2.1 to 3.X.

Code: Select all

booking-faces                 prime-faces spring-webflow        spring-framework  spring-security     jsf     FFC-patch   result              
booking-faces-original        2.2.1       2.3.0.RELEASE         3.0.5.RELEASE     3.0.2.RELEASE       2.0.3   no          pass                
booking-faces-2.2.1-plus      2.2.1       2.3.0.RELEASE         3.1.0.RELEASE     3.1.0.RELEASE       2.0.8   no          pass                
booking-faces-2.2.1-ultraplus 2.2.1       2.3.1.BUILD-SNAPSHOT  3.1.0.RELEASE     3.1.0.RELEASE       2.1.6   yes         pass                
booking-faces-3.0.1-plus      3.0.1       2.3.0.RELEASE         3.1.0.RELEASE     3.1.0.RELEASE       2.0.8   no          fail                
booking-faces-3.1             3.1         2.3.0.RELEASE         3.0.5.RELEASE     3.0.2.RELEASE       2.0.3   no          fail                
booking-faces-3.1-plus        3.1         2.3.0.RELEASE         3.1.0.RELEASE     3.1.0.RELEASE       2.0.8   no          fail                
booking-faces-3.1-uberplus    3.1         2.3.1.BUILD-SNAPSHOT  3.1.0.RELEASE     3.1.0.RELEASE       2.0.8   no          fail                
booking-faces-3.1.1-uberplus  3.1.1       2.3.1.BUILD-SNAPSHOT  3.1.0.RELEASE     3.1.0.RELEASE       2.0.8   no          fail                
booking-faces-3.1.1-ultraplus 3.1.1       2.3.1.BUILD-SNAPSHOT  3.1.0.RELEASE     3.1.0.RELEASE       2.1.6   yes         fail                
PrimeFaces 2.2.1 works, but 3.X fails, so why is downgrading WebFlow the price of upgrading PrimeFaces?

-SM

smaines
Posts: 23
Joined: 08 Feb 2012, 19:14

13 Mar 2012, 02:21

In considering the above, bear in mind that PrimeFaces claims it is "one jar, zero-configuration" (which is very cool, btw), yet under several identical stacks (on a very simple app), 2.2.1 works but 3.x fails.

Why?

-SM

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

13 Mar 2012, 08:52

If external projects cannot keep up with PF, that is not a problem of PF, regardles of the zero configuration. And who should pay for havinf PF backwards compatible with projects that rely on pf, not the other way around. PF with standards work great, no problem at all having it work with CDI etc... Maybe ditch webflow? ;)

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

13 Mar 2012, 10:21

If external projects cannot keep up with PF, that is not a problem of PF, regardles of the zero configuration.
I agree.

One user has posted the issue that he can't use the simple page containing simple MasterDetail (PF Ext. component) with Spring Web Flow. This simple page works fine in a "normal" environment. The problem is Spring Web Flow. But what can we do in this case?
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
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

13 Mar 2012, 10:25

And I agree with Cagatay
If PrimeFaces pagination works without SWF and fails with SWF then what causes the problem should be clear. It is up to SWF to update to support PrimeFaces 3. Not the other way around. Spring ROO constantly updates itself with each PrimeFaces release.
There is nothing in PrimeFaces 3.x to change.
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

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

13 Mar 2012, 10:27

Just a side note, it has been 1 year since SWF made a release(2.3.0) and it has been 1 day since PF made a release(3.2).

http://www.springsource.org/node/3044

Have you considered CDI?

MTornros
Posts: 102
Joined: 23 Dec 2011, 16:43

13 Mar 2012, 14:09

smaines: You can read more about the issue here: https://jira.springsource.org/browse/SWF-1467.

It's sort of a typo in the FlowFacesContext class. It's kind of ridiculous that webflow has not fixed this bug in over a year. If you add the file attached to that ticket your classloader should pick it up instead of the defective version. Alternatively, you can generate a project at www.springfuse.com and the modified version will be included automatically.
Primefaces 3.4.1-jQueryfix
Spring webflow 2.3.1
Mojarra jsf 2.1.7

smaines
Posts: 23
Joined: 08 Feb 2012, 19:14

14 Mar 2012, 19:12

Thank you all for replying, it was good to see so many replies. Cagatay, I see your point: 2.3.1 seems a long time coming, which is a bit worrying. I selected SWF (and the rest of my stack) much earlier, and only just found PF recently. Throwing over SWF is not something I'd do that casually.

Further (to all the they-gotta-keep-up-with-us comments), I've been working on my project for a while now, and have upgraded through several major revisions of Spring, Hibernate, My SQL, JPA, and swapped in and out a few smaller frameworks as well. There's always a bit of effort, but I'm committed to staying on latest production versions, which is how I found myself updating the sample app, to be certain it worked before I started the more complex component I'm building.

The few PF things I had to change were minor, but the pagination failure is disturbing. As to the FFC patch mentioned, that is in some of the cases in the test matrix, it does not fix the problem. There is something else going on there, which I could find crawling through all the code between pager click and refresh (which may end up being instructive), but either Cagatay or Rossen should see it quickly. Having SWF and PF incompatible does no one any good, and my test cases are very clear maven projects. BTW, they are all together in the Spring Jira entry.

-SM

smaines
Posts: 23
Joined: 08 Feb 2012, 19:14

17 Mar 2012, 03:58

This is related to, and possibly now resolved by, https://jira.springsource.org/browse/SWF-1527 :D

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests