Summary

In this chapter, we have browsed through an overview of JSF/CDI scopes. It begins with an open discussion about JSF scopes versus CDI scopes, meant to provide a few advantages/disadvantages of choosing either one (or both). After a short overview of JSF/CDI scopes, each scope was detailed by covering fundamental knowledge, such as definition, usability, functionality, restrictions, and examples.

The chapter ends with a bunch of thoughts regarding beans injections. You can find several rules, tips, and bad practices commonly used in JSF applications mentioned out here.

See you in the next two chapters, where we will cover many kinds of JSF artifacts and configuration stuff.

Get Mastering JavaServer Faces 2.2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.