From the course: Java EE 8: JavaServer Faces JSF 2.3

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Improved CDI integration in JSF 2.3

Improved CDI integration in JSF 2.3

From the course: Java EE 8: JavaServer Faces JSF 2.3

Start my 1-month free trial

Improved CDI integration in JSF 2.3

- Java Server Faces have been flirting with the context and dependency injection framework for a while, that's CDI, but now it's official. As of version 2.3, CDI is the preferred dependency management frame work for JSF. And this is a huge deal. For one, the old JSF annotations have been officially deprecated, so pretty much everything inside the Java X .faces.bean package should no longer be used in JSF 2.3. There is only one survivor from that era, and that's the app manage property annotation and it's being keep partly for backward compatibility, but also because there's not yet a suitable replacement for it in the pure CDI world just yet. We will check out the new annotations as we move along. But pay attention to where the latest incarnation of app manage property is coming from. The old app manage property hails from the Java x .faces.bean package. The new CDI friendly version comes from the Java x.faces.annotations…

Contents