Benas
Benas

Reputation: 2332

Can I use more than one JSF implementation in the same project?

Can I use more than one JSF implementation in the same project? Can I mix PrimeFaces with MyFaces for example? What are implications of that?

Upvotes: 1

Views: 287

Answers (1)

Jasper de Vries
Jasper de Vries

Reputation: 20263

No, you cannot mix JSF implementations. By the way, PrimeFaces is not a JSF implementation. MyFaces is a JSF implementation, just like Mojarra.

You could however mix component libraries like PrimeFaces. See for example how you can use both BootsFaces and PrimeFaces, or OmniFaces and PrimeFaces (OmniFaces is mainly a utility library, but has some components).

Note that you do need a JSF implementation in order to be able to use a JSF component library at all. If you are using a JavaEE server (like Payara or WildFly), the JSF implementation is already provided by the server.

See also:

Upvotes: 5

Related Questions