Book Image

Digital Java EE 7 Web Application Development

By : Peter Pilgrim
Book Image

Digital Java EE 7 Web Application Development

By: Peter Pilgrim

Overview of this book

Digital Java EE 7 presents you with an opportunity to master writing great enterprise web software using the Java EE 7 platform with the modern approach to digital service standards. You will first learn about the lifecycle and phases of JavaServer Faces, become completely proficient with different validation models and schemes, and then find out exactly how to apply AJAX validations and requests. Next, you will touch base with JSF in order to understand how relevant CDI scopes work. Later, you’ll discover how to add finesse and pizzazz to your digital work in order to improve the design of your e-commerce application. Finally, you will deep dive into AngularJS development in order to keep pace with other popular choices, such as Backbone and Ember JS. By the end of this thorough guide, you’ll have polished your skills on the Digital Java EE 7 platform and be able to creat exiting web application.
Table of Contents (21 chapters)
Digital Java EE 7 Web Application Development
About the Author
About the Reviewers

Chapter 5. Conversations and Journeys


"Success is liking yourself, liking what you do, and liking how you do it."

 --Maya Angelou

In this chapter, we devote our attention to the JSF conversation scope. This scope defines the lifecycle of a managed backing bean that spans between the request and the session scope. This allows the data in the form to survive in a lifespan that sits between the request-scope and the session-scope. The conversation scope is also said to be contextual. This term is appropriated from the Context and Dependency Injection (CDI) specification, and it means that the life span of the beans marked with a conversation scope are treated as being part of a context. You can think of this as a dotted marker that the CDI container draws around the object instances to define them as a private group, which denotes a lifecycle. The CDI container does this job of gathering the object instances together as it associates one object bean with a dependency on another.

In CDI, Context...