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

Unlock the full course today

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

Deprecated JSF bean annotations

Deprecated JSF bean annotations

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

Start my 1-month free trial

Deprecated JSF bean annotations

- [Instructor] Meet the classic JSF ManagedBean. We have at ManagedBean here, @RequestScoped, @ManagedProperty or from the javax .faces .bean package. This is the way we used to do things when annotations were introduced with JSF 2.0 and, for a while, after that these annotations were tolerated. Okay, story time. In the olden days of 2008, the story goes that the JSF and the context and dependency injection, CDI specification teams were simultaneously working on bean annotation frameworks in parallel. Legend has it that the JSF team happened to get theirs ready first, and packaged and published it. After that, came CDI's ManagedBean annotation framework. This, friends, is how we wound up with two bean annotation frameworks in JSF. Well, CDI is having the last laugh. The JSF ManagedBean annotations have officially been deprecated in JSF 2.3 as you can see here with the deprecation marker, a line…

Contents