0

Can RichFaces (either 3.x or 4.x) and PrimeFaces (either 3.5 or 4.0) be used in the same JSF 2.x application? Will they coexist nicely?

My goal is migrating from RichFaces 3.x to PrimeFaces. I would like to start by using PrimeFaces for a new submodule of my web application, and eventually migrate everything.

It would be fairly easy to set up a simple hello-world sized project and try it out; I am asking here because I wish to know if there are some problems when doing this on real-life sized projects.

Danilo Piazzalunga
  • 7,590
  • 5
  • 49
  • 75
  • 4
    In theory there's no problem to do that. Both of them are independent libraries which access jsf functionalities in their own way. You should be able to achieve that. – Aritz Nov 08 '13 at 10:32
  • Thanks. BTW, your comment would make an useful answer. – Danilo Piazzalunga Nov 08 '13 at 10:44
  • Haven't tested it by myself, so could not provide you a decent answer. In theory it's possible to achieve. Practically, you can search for issues some people had ([here](https://community.jboss.org/thread/230784) and [here](http://stackoverflow.com/questions/6117808/is-that-possible-to-combine-primefaces-and-richfaces-in-one-web-application)). File uploading seems to be a field where you could have problems. – Aritz Nov 08 '13 at 10:54
  • I have tried to use both of them but if you try to use component does not behave properly – BholaVishwakarma Nov 08 '13 at 13:49
  • 4
    For the person that voted this question as a duplicate, I must say that the possible dup question dates from 2011 year, and after almost 3 years all JSF, RichFaces and Primefaces have evolved and have newer versions, but basically the answer is the same: yes, you can use both but may have compatibility issues, so it would be better choosing one of them according to your needs/requirements. – Luiggi Mendoza Nov 08 '13 at 15:11

0 Answers0