Spring Web Flow 2 Web Development

Markus Stäuble, Sven Lüppken

eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39 save 15%!
Print book: $39.99
$35.99 save 10%!
Print + eBook bundle: $63.98
Includes free access to the book on PacktLib
$39.59 save 38%!
Free Shipping! UK, US, Europe and selected countries in Asia.
This book can also be purchased from:
Overview
Table of Contents
The Author
Reviews
Downloads

 

  • Design, develop, and test your web applications using the Spring Web Flow 2 framework
  • Enhance your web applications with progressive AJAX, Spring security integration, and Spring Faces
  • Stay up-to-date with the latest version of Spring Web Flow
  • Walk through the creation of a bug tracker web application with clear explanations

Book Details

Language : English
Paperback : 200 pages [ 235mm x 191mm ]
Release Date : March 2009
ISBN : 1847195423
ISBN 13 : 978-1-847195-42-5
Author(s) : Markus Stäuble, Sven Lüppken
Topics and Technologies : All Books, Java, Open Source, Web Development


Table of Contents

Preface
Chapter 1: Introduction
Chapter 2: Setup for Spring Web Flow 2
Chapter 3: The Basics of Spring Web Flow 2
Chapter 4: Spring Faces
Chapter 5: Mastering Spring Web Flow
Chapter 6: Testing Spring Web Flow Applications
Chapter 7: Security
Appendix A: flow.trac:The Model for the Examples
Appendix B: Running on the SpringSource dm Server
Index
  • Chapter 1: Introduction
    • Three cornerstones: Spring, Spring MVC, and Spring Web Flow
      • Spring Framework
      • Spring MVC
      • Spring Web Flow
    • What is Spring Web Flow
      • The elements of Spring Web Flow: flow, view, and conversation
        • Flow
        • View
        • Conversation
      • The Spring Web Flow elements: an example
    • The new major release: Spring Web Flow 2.0
      • Spring Web Flow
      • Spring Faces
      • Spring JavaScript
      • Spring Binding
    • Introduction to a new version
      • Automatic model binding
      • Support for a new expression language
      • Flash scope is now a real flash scope
      • Spring Faces
      • Flow managed persistence
      • External redirects
    • Summary
  • Chapter 2: Setup for Spring Web Flow 2
    • Installation of Spring Web Flow 2
      • Inside the distribution
      • The examples inside the distribution
        • Building the examples from the source code
        • Installing the examples on your local machine
    • Support for developers
      • Build systems
        • Ant
        • Maven
      • IDE
        • Eclipse and Spring IDE
        • NetBeans
    • A sample for a quick start
      • Overview over the example
      • The basics
      • Building the service and database layer
      • The web.xml file
      • Dependencies
    • Summary
  • Chapter 3: The Basics of Spring Web Flow 2
    • Elements of a flow
      • The entry point to the flow
      • Section head
      • Section data
        • The metadata of a flow
        • Section input
        • Programming in a flow
        • The scopes
        • The flow instance variables
        • Assign a value to a scope variable
        • Access the value of a scope
        • Inputs
      • The states
        • The start-state
        • The action-state and execution of business logic
        • The view-state
        • The decision-state
        • The subflow-state
        • The end-state
      • The exit point
      • Section footer
        • global-transitions: global handling of events
        • on-end: execution of actions at the end of the flow
        • output: output of the flow
        • exception-handler: exceptions between the execution of a flow
        • bean-import: declaring beans for a flow
      • Internals of building a flow
    • Configuration
      • FlowRegistry
      • FlowExecutor
      • FlowExecutor Listeners
      • Internals of the Webflow Configuration
      • Inheritance inside a flow definition
        • Inheritance for flows
        • Inheritance for states
        • Merge or no merge
    • The complete flow for the example
    • Summary
  • Chapter 4: Spring Faces
    • Enabling Spring Faces support
      • Inside the Facelets technology
      • The ResourceServlet
        • Internals of the ResourceServlet
      • Configuration of the application context
    • Using Spring Faces
      • Overview of all tags of the Spring Faces tag library
      • A complete example
        • Creating the input page
        • Handling of errors
        • Reflecting the actions of the buttons into the flow definition file
        • Showing the results
    • Integration with other JavaServer Faces component libraries
      • Integration with JBoss RichFaces
      • Integration with Apache MyFaces Trinidad
    • Summary
  • Chapter 5: Mastering Spring Web Flow
    • Subflows
    • Spring JavaScript
      • What is AJAX?
      • Installing Spring JavaScript
        • The first example with Spring JavaScript
      • Apache Tiles integration
        • Tiles and AJAX
    • The Web Flow configuration
      • flow
      • attribute
      • secured
      • persistence-context
      • var
      • input
      • output
      • actionTypes
        • evaluate
        • render
        • set
      • on-start
      • on-end
      • transition
      • global-transitions
      • exception-handler
      • bean-import
      • action-state
      • view-state
      • decision-state
      • subflow-state
      • end-state
    • Summary
  • Chapter 6: Testing Spring Web Flow Applications
    • How to test a Spring Web Flow application
      • The first example
      • A look into the source code
      • First steps in testing
      • Testing Persistent Contexts
        • A short introduction to EasyMock
      • Testing subflows
      • More testing with EasyMock
    • Summary
  • Chapter 7: Security
    • Introducing Spring Security
    • Installing Spring Security
    • Basic authentication with Spring Security
      • Setting up your web.xml
      • Advanced Spring Security configuration
      • UserDetails
      • Using database access to retrieve users
      • Securing parts of a web page
      • Securing method invocations
    • Using Spring Security with Spring Web Flow
      • Changing the user's password
    • Summary

Markus Stäuble

Markus Stäuble is currently working as CTO at namics (deutschland) gmbh. He has a Master degree in Computer Science. He started programming with Java in the year 1999. After that he has earned much experience in building enterprise java systems, especially web applications. He has a deep knowledge of the java platform and the tools and frameworks around Java.


Sven Lüppken

Sven Lüppken has a degree in computer science, which he passed with distinction. He is currently employed as Java Software Developer at one of the leading broadcasting and production companies in Germany. Sven started programming in C and C++ at the age of 16 and quickly fell in love with the Java programming language during his studies.

When he got the chance to write his diploma thesis about object-relational mapping technologies he accepted at once.

Since then, he has integrated Hibernate and the JPA in many projects, always in conjunction with the Spring framework.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Find your book in our support section to find errata and to download code samples.

What you will learn from this book

 

  • Explore the features of Spring Web Flow 2 to develop powerful applications
  • Extend the framework to take it beyond its out-of-the-box feature set
  • Get started with Spring Faces, Spring JavaScript, and Spring Binding and improve the handling of the web flow
  • Test your Spring application and rest assured of its quality before going live
  • Secure your web applications using Spring Security and Spring Web Flow
  • Integrate JavaServer Faces (JSF) with Spring Web Flow to organize and manage the storage of data inside your web application

Special Offers

PacktLib gives you access to this and 600+ other titles with an annual or monthly subscription.

Annual subscription:

$220.00 per annum

Monthly subscription:

$21.99 per month

Buy 2 eBooks
and Get 50% Off
+
Buy Spring Web Flow 2 Web Development with Spring Security 3 and get 50% off both the eBooks.
Just add both the eBooks to your shopping cart and enter sp2300ebk in the 'Enter Promotion Code' field. Click 'Add Promotion Code' and the discount will be applied.
View Best Selling eBook offers

In Detail

Many web applications need to take the user through a defined series of steps such as e-commerce checkouts or user registrations. Spring Web Flow works well for rich and flexible user interaction, additionally it helps you to describe the flow of websites in complex processes. Spring Web Flow 2 provides the perfect way to build these kinds of features, keeping them secure, reliable, and easy to maintain.

This book provides a platform on which you can build your own applications and services. It gives detailed information on Spring basics and covers core topics involving testing, security, and so on. We develop a complete, robust web application using the latest version of Spring, where page navigation is done on-the-fly.

This book teaches you how to work with Spring Web Flow. It covers both basic and advanced aspects and provides a detailed reference of the features Spring Web Flow. The book helps readers to extend the framework.

The integration of Spring and Java Server Pages is clearly explained in the book. The book also explains the essential modules of the complete Spring framework stack and teaches how to manage the control flow of a Spring web application.

The Spring Faces module will provide integration between Spring Web Flow and Java Server Faces (JSF). Testing, an important aspect of the software development process is covered towards the end; the question of how to test a Spring Web Flow application is answered.

A practical guide to designing powerful web applications with the Spring Web Flow framework

Approach

This book is a tutorial, with plenty of step-by-step instructions beginning with "getting started" material, followed by advanced coverage of this technology. The book has a practical approach towards the Spring MVC framework and is packed with practical examples and code.

Who this book is for

This book is targeted at Java web application developers who want to work on Spring Web Flow. This book is a must-read for those who desire to bridge the gap between the popular web framework and the popular application framework. It requires prior knowledge of the Spring framework, but no prior knowledge of Spring Web Flow.

Are there no books available that are right for you at the moment? How about signing up to our newsletter to keep up to date?
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Sort A-Z