7

After reading RichFaces Vs PrimeFaces (for performance), I was tempted to use both in my web application to get the maximum benefit from both.

Do you think that is possible? What are the advantages and disadvantages?

Community
  • 1
  • 1
matiman
  • 417
  • 2
  • 8
  • 15

4 Answers4

7

Both are great component libraries. You can definitely combine them. But it is not true that it's 1+1=2 here. It's more 1*1=1. You should really investigate the both component libraries more closely. What exactly do you need from RichFaces which PrimeFaces doesn't offer? What exactly do you need from PrimeFaces which RichFaces doesn't offer? You need to find the right balance yourself. The one webapp isn't the other.

As to advantages/disadvantages, that's pretty subjective. Go play with them yourself. First each separately and then together. Own experience is the best experience. I myself had good experiences with PF 2.1. PF 2.2 had some serious issues in among others the datatable component. I didn't try PF 3.0 yet. I am currently working on a project which uses some RF 3.3 components and we are in a progress to upgrade it to RF 4.0. All I can say is that it's a pretty decent component library with good documentation. The full PF documentation isn't freely available anymore.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • I fail to understand your point. Truly those component libraries are open source. But what you mean with "tool"? And how exactly is "open source" important here? – BalusC May 25 '11 at 04:02
  • Sorry for my unclear comment. What I meant was, I thought the documentation itself was also free, but I found out it is not. – matiman May 25 '11 at 15:31
  • With these component libraries, is it possible to customize the look of each individual component independently besides choosing a single theme for all components? – Rajat Gupta May 27 '11 at 10:01
  • 2
    I downvoted because it does not make any progress towards answering the question of the possibility, and of the desirability of this mix. – seinecle Aug 03 '12 at 18:28
  • 2
    @BalusC this answer doesn't cover the question at all. The OP talks about having both of them together in the same module. – Aritz Nov 08 '13 at 10:54
  • 1
    @XtremeBiker: if the sole question is "Can I mix PF and RF?", then the answer is obviously "Yes". But the advantages won't increase (which is what I meant with 1*1=1 instead of 1+1=2). – BalusC Nov 08 '13 at 10:56
  • 1
    OK, that's true from that point of view. Could be considered as that cause OP doesn't mention the word `compatibility` at all. – Aritz Nov 08 '13 at 10:58
  • The answer is definitely 'no', and it is by no means obvious. – user207421 Jan 29 '19 at 20:48
3

My answer is "no". It's better for you choose one of them. There are a lot of compatibility issues. For example, I've spent two days fixing a bug with rich:fileUpload. Finally, I've commented primefaces in my pom.xml (only a few components from primefaces were used) and all works fine then.

nikagra
  • 835
  • 2
  • 9
  • 23
1

The answer is 'no' as of RF 4.5.7 and PF 5.2. There are jQuery conflicts which mean that some of the PF controls don't work. They've been talking together about sorting this out for five years but nothing appears to have been resolved.

user207421
  • 305,947
  • 44
  • 307
  • 483
0

I looked at both and ended up with PrimeFaces. The documentation for V 2.2 is now paid-for (I think about $9US) and gets you going very quickly.

Actually I did try this once when I was evaluating. I had PrimeFaces and RichFaces on the same page. It worked, but I was mostly looking at how the components were styled and how they looked. I did not try, for example, using AJAX requests from components from both packages on the same page. Since they are both based on the "native" JSF implementation, it should work but I wouldn't count on it.

Pick one of the other, and stick with it. Save yourself some grief.

AlanObject
  • 9,613
  • 19
  • 86
  • 142