![[17.0.0.4 and later]](../ng_v17004plus.gif)
Configuring third-party JavaServer Faces 2.2 implementations
Use the JavaServer Faces (JSF) Container 2.2 feature to allow Contexts and Dependency Injection (CDI) integration to work with a JSF provider that is bundled within an application.
Before you begin
About this task
Use the Liberty JSF container to package any 2.2.X version of the MyFaces or Mojarra JSF implementation within an application and also use Liberty CDI integrations. To configure a Liberty server to run an application with JSF 2.2, enable the jsfContainer-2.2 feature and package the JSF API and implementation inside of your application.
Important:
- You cannot use the jsfContainer-2.2 feature with other JSF features, such as jsf-2.2.
- To use the JSF container, package the JSF API javax.faces classes and a JSF implementation inside of the application. The program does not support packaging the JSF API and implementation in a shared library.
- The jsfContainer-2.2 feature is supported only for the JSF API and implementation that correspond to the 2.2 version of the JSF specification. The MANIFEST.MF of the JSF API and implementation must define a Specification-Version between version ranges [2.2,2.3).
- For JSF @ManagedBeans with jsfContainer-2.2, the program does not support the injection of objects with @Resource or @EJB beans. Use the CDI @Named beans instead.