8

I've been programming using RichFaces and JSF for quite some time now, and like the features that Facelets offer (especially as part of JSF 2), but haven't used it yet. Are there any gotchas to watch out for or incompatibilities between RichFaces and Facelets? I use A4J ajax functionality a lot as part of RichFaces, so I am concerned about that also.

Thanks in advance.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Jon Onstott
  • 13,499
  • 16
  • 80
  • 133

6 Answers6

6

Keep in mind that Facelets is just a view layer for JSF 2. JSF2 and RichFaces have some incompatibilities. Check this to see a list of them:

http://community.jboss.org/wiki/RichFaces333andJSF20

RichFaces used with standalone Facelets (I currently use 1.1.14) works great.

Drew
  • 15,158
  • 17
  • 68
  • 77
  • 1
    Thanks for the info. Richfaces 4 is going to be built on JSF 2 and I think they are reworking a lot of it, but who knows when that'll be out ;o) – Jon Onstott Jan 22 '10 at 17:47
3

The RichFaces demo application uses Facelets, so I'd even say it's recommended.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
2

I'd go a bit further and say that not using Facelets with JSF is crazy.

It's such a handy framework. No wonder they used many concepts from it for JSF2.

Damo
  • 11,410
  • 5
  • 57
  • 74
0

We use them together without any problem. I have not encountered any gotchas.

rayd09
  • 1,837
  • 17
  • 20
0

No worry about this combination, it's definitely the way to go with JSF !

Chris
  • 2,744
  • 3
  • 24
  • 39
0

I'm used configuration: richfaces4 + facelets + netbeans 6.9, and the only problem detected betwen facelets and rich is a two(2) click for ajax or include page dynamic

chia77
  • 1