English French German Italian Portuguese Russian Spanish

logo_old

  • Java Training

    javaInterSource offers live instructor-led courses on all important Java-related technologies, including Apache Struts, Enterprise Java Beans (EJB), J2SE Desktop Java Enterprise Edition (Java EE), Java Fundamentals, Java Web Services, JavaServer Faces, JBoss, Java Server Pages (JSP), and Spring.

    Please refer to our detailed course outlines below.

  • About Java

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture

    Java is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is considered by many as one of the most influential programming languages of the 20th century, and widely used from application software to web application.

    Read More

  • Course Details Java

    Classes are offered at client sites, at our Geneva training center, and via a live web conference. For detailed course outlines and scheduled classes, please see below.

    To book training, navigate to the course you need, then:

    • For scheduled online classes, register from the choices indicated.
    • If you need an alternative date, time or location, or if you want a live classroom course, click on “request an offer for this course,” to complete the form.

Spring Web Flow

 PDF PrintEmail

Course duration

  • 5 Days

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.

  • Understand the scope, purpose, and architecture of Spring
  • Use Spring's bean factories and application contexts to declare application components, rather than hard-coding their states and lifecycles
  • Use dependency injection to further control object relationships from outside the Java code base
  • Use annotations to take advantage of Spring post-processors for automated bean instantiation and wiring
  • Create validators for business objects, and associate them for application-level and unit-testing uses
  • Build a simple Web Flow application, with declarative control over page flows.
  • Bind model beans to pages, and control when binding should and shouldn't occur.
  • Invoke Java methods as actions on controllers, service objects, and other JavaBeans placed in Web Flow or Spring singleton scopes.
  • Install custom data-binding logic.
  • Develop validation logic for individual model beans and view states.
  • Organize more complex applications into master flows and subflows.
  • Observe the progress of a flow using a flow execution listener, and implement interceptors over one or more lifecycle hooks.
  • Java programming
  • Basic knowledge of XML
  • Servlets programming
  • JSP
  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
      5. POST-REDIRECT-GET
      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.