what's the problem between Primefaces 3 and Richfaces 4

UI Components for JSF
Post Reply
nazila
Posts: 11
Joined: 14 Mar 2011, 09:16

27 Mar 2011, 11:48

I have a JSF 2 page using Primefaces-3.0-prime-1 which everything within there is OK till I put a Richfaces 4 CR1 UI component on this page. Then some strange things occurs :shock: , for example, the face of <p:button> seems like Richfaces UI components and <p:growl> doesn't work at all and I can't see it. Could anyone help me please?

callahan
Posts: 768
Joined: 27 May 2010, 22:52

29 Mar 2011, 12:20

I'm not even a tiny bit surprised that you're having issues using both component libraries at the same time. It's probably not a sane thing to do.

nazila
Posts: 11
Joined: 14 Mar 2011, 09:16

29 Mar 2011, 13:33

:( But I used previous JSF 1.2 based versions of both component libraries at the same time without any problem. Now I specially missed growl :( I love it :roll:

healeyb
Posts: 365
Joined: 07 Apr 2010, 16:05

29 Mar 2011, 13:41

You need to post up code, error logs, etc... if you want any help. There is
a known problem with including the primefaces/richfaces supplied jquery
libs for use in a page, they're not necessarily using the same versions.

If you use both frameworks, and it works, it's going to be by mistake
rather than design. Jay Balunas from the RichFaces team has stated that
he'd like to see RichFaces co-existing with other frameworks, but this is
just a statement of intent as opposed to the result of months of testing.

Personally I'd like to see this happen, it would be good news for application
developers, but it will take up a lot of resource and will need to wait unti
things (i.e. the pace of development) have calmed down a bit I think.

Regards,
Brendan.

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

29 Mar 2011, 13:42


healeyb
Posts: 365
Joined: 07 Apr 2010, 16:05

29 Mar 2011, 14:40

Well Cagatay, they say that imitation is a form of flattery, and it's very
true in this case. In sport they say that you can never catch up with
another team, you can only leapfrog them - I don't see that happening
in this case. Keep up the good work.

Brendan.

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

29 Mar 2011, 14:51

Bad guys :evil: Unfortunately open source is not protected by copyright.

I think, your problem is how CSS files are rendered, in which order, which severity they have, etc. Other possible issue - before 2.2.1 PrimeFaces components had pf-* selectors and now ui-*. That doesn't guarantee unique namespaces. If RichFaces uses ui-* too, you can run in trouble. I don't know why p:growl doesn't work, but I'm aware of jquery compatibility issue using in PF and RF.

As Cagatay already said - "use Original, bet on PrimeFaces" :-) What did you see / use special in RichFaces what PrimeFaces doesn't have?
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

palace
Posts: 25
Joined: 02 Jun 2010, 10:30
Location: Stockholm
Contact:

30 Mar 2011, 19:16

The new extendedDataTable looks nice. It would be cool to be able to "freeze" columns and scroll like that with PF.

http://richfaces-showcase.appspot.com/r ... dDataTable
Primefaces 3.0.M3 with JSF 2.1.2 on Tomcat 7

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests