Spring Web Flow


Request an offer for classroom delivery of this course

Register for a Live Web Conference Course

Course duration

Course Outline

This course enables the experienced Java developer to use the Spring Web Flow framework to create simple and complex web applications. Web Flow represents a powerful new approach to designing and developing web applications, and can also draw on the configuration capabilities of Spring itself. We begin with an introduction to the Spring Core module -- which implements the configurable object container available to Web Flow applications as an application context -- and get oriented to the Spring web framework, as underpinnings of the Web Flow system.

Then we dive into Web Flow itself, and develop key concepts of flow, state, transition, and action. We get moderately complex applications up and running with these elements, and see how the JavaBeans used to power a flow can also take advantage of Spring configuration and dependency injection. Then we move into more advanced techniques including custom converters, validators, and subflows. We conclude the course with a look at lifecycle and context features, such as the FlowExecutionListener.

  1. Introduction to Spring
    1. Overview of Spring
      1. Java EE: The Good, The Bad, and the Ugly
      2. Enter the Framework
      3. Spring Value Proposition
      4. The Spring Container
      5. Web Applications
      6. Persistence Support
      7. Aspect-Oriented Programming
      8. The Java EE Module(s)
      9. Integrating Other Frameworks
    2. The Container
      1. JavaBeans, Reconsidered
      2. The Factory Pattern
      3. Inversion of Control
      4. XML View: Declaring Beans
      5. Java View: Using Beans
      6. Singletons and Prototypes
    3. Instantiation and Configuration
      1. Configuring Through Properties
      2. Configuration Namespaces
      3. The p: Notation
      4. Bean (Configuration) Inheritance
      5. Configuring Through Constructors
      6. Bean Post-Processors
      7. Lifecycle Hooks
      8. Integrating Existing Factory Code
    4. Dependency Injection
      1. Complex Systems
      2. Assembling Object Graphs
      3. Dependency Injection
      4. Single and Multiple Relationships
      5. The Utility Schema
      6. Bean Aliases
      7. Inner Beans
      8. Autowiring
      9. Auto-Detecting Beans
      10. @Autowired Properties
      11. Best Practices with Spring 2.5 Annotations
    5. Assembling Object Models
      1. Collections and Maps
      2. Support for Generics
      3. The Spring Utility Schema (util:)
      4. Autowiring to Multiple Beans
      5. Order of Instantiation
      6. Bean Factory vs. Application Context
    6. Validation
      1. Validators
      2. The Errors Object
      3. ValidationUtils
      4. Error Messages and Localization
      5. Nested Property Paths
  2. The Spring Web Module
    1. The Web Module
      1. Servlets and JSPs: What's Missing
      2. The MVC Pattern
      3. The Front Controller Pattern
      4. DispatcherServlet
      5. A Request/Response Cycle
      6. The Strategy Pattern
      7. JavaBeans as Web Components
      8. Web Application Contexts
      9. Handler Mappings
      10. "Creating" a Model
      11. View Resolvers
    2. Customizing Control Flow
      1. HandlerMapping Options
      2. ViewResolver Options
      3. Chaining View Resolvers
      4. Triggering Redirects
  3. Spring Web Flow
    1. Introducing Spring Web Flow
      1. Spring Web Flow
      2. Relationship to Spring
      3. How It Works: Development Time
      4. How It Works: Request Time
      5. Totally Inverted Control
      6. The Web Flow Schema
      7. Flows, States, and Transitions
      8. Model Beans
    2. States and Transitions
      1. Flows
      2. View States
      3. Transitions
      4. Lifecycle Hooks
      5. Encoding Commands in HTML Views
      6. Global Transitions
      7. Web Flow URLs
    3. Actions
      1. Variables
      2. Scopes
      3. Actions
      4. Expression Language
      5. Implicit Objects
      6. Using Spring Beans
      7. Action and Decision States
      8. Sequence of Events
    4. Beans and Scopes
      1. Model Beans and Binding
      2. Web Flow Scopes
      3. Flow Scope
      4. View Scope
      6. Flash Scope
      7. Spring Singletons vs. Web Flow Scopes
      8. @Autowired Dependencies
    5. Binding
      1. Binding to a Model
      2. The MessageContext
      3. Message Bundles
      4. Reporting Error Messages
      5. Converters
      6. The ConversionService
      7. A Declarative Approach
    6. Validation
      1. Validation
      2. The ValidationContext
      3. Registering a Validator
      4. Adapting Spring Validators
      5. The MessageBuilder
    7. Subflows
      1. Designing with Web Flow
      2. Flow Input and Output
      3. Subflow States
      4. Conversation Scope
      5. Subflows as Factories
      6. Dynamic Transitions
      7. Action States as Join Points
    8. Lifecycle
      1. Observing Flow Execution
      2. The FlowExecutionListener
      3. The RequestContext
      4. The FlowSession
      5. Java View of Flow Definitions
      6. Implementing Interceptors

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).

InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)

For an overall view of our offerings, please visit us at www.intersource.ch.