CDI integration with JavaServer Faces
Contexts and Dependency Injection (CDI) primarily integrates with JavaServer Faces (JSF) through the Expression Language (EL). It enables CDI beans to be exposed through the unified EL-to-JSF components. It also provides a built-in context for conversation scope that is active during standard JSF life cycle phases.
As part of the WebSphere® Application
Server integration with CDI containers, several JSF components are
automatically registered for CDI applications, including:
- EL Resolver
- Phase Listener
- View Handler
- Application Factory
Avoid trouble: The FacesServlet must be defined in the
web.xml
of the application.Only the default JSF implementation (based on MyFaces) is supported for use with CDI.