© Michael Müller 2018
Michael MüllerPractical JSF in Java EE 8 https://doi.org/10.1007/978-1-4842-3030-5_17

17. Conversation Scope

Michael Müller1 
(1)
Brühl, Nordrhein-Westfalen, Germany
 

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 ...

Get Practical JSF in Java EE 8: Web Applications ​in Java for the Enterprise 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.