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
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Index

Programmatic Faces Flows


In this appendix, we will provide a quick reference to the JavaServer Faces Flow. A flow is as per user and per web application finite state machine is with nodes. There is a default entry node and at least one exit node.

View types

In Chapter 6, JSF Flows and Finesse, we discussed the building of the flow navigation from the Faces configuration XML file. The JSF 2.2 specification describes the convention to store and set up the flows with a directory structure.

There are several types of nodes. They are tabulated in the following table:

Node type

Description

View Node

This node represents a view. The JSF provider renders the view, the flow is still active.

Return Node

This node represents an exit point from the flow to the outside of this flow. The current flow terminates on the invocation of this node.

Flow Call Node

This node represents an invocation to another nested flow.

Method Call Node

This node represents an invocation to a method call in a flow-scoped bean. After leaving this method call, the current flow is still active.

Switch Node

This node represents a selectable conditional state. Depending on the state, the flow may move to one or more alternative states and there is a default outcome. The current flow is still active.

Navigation Case Node

This node represents a generalized conditional state with navigation. Depending on the state, the flow may move to a new outcome or execute an HTTP redirect out of the flow.

Tip

By comparing the Faces Flows with the other flows or business process technology, it should be acknowledged that there is no so-called initial node.