Contexts and Dependency Injection (CDI) offers a couple of different scopes that you may use to define the lifetime of an object. Most scopes (such as request scope) are bound to predefined cycles like a single request, a session, or the application lifetime. The lifetime of one predefined scope, the conversation scope , can be controlled programmatically, so this scope becomes interesting for a couple of features.
Multi-page Editor
Our next task is to create a new book entry or edit an existing one. The book editor will consist of a tab panel offering one page for ...