Spring Web Flow 2 Web Development


Spring Web Flow 2 Web Development
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.40
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$60.39
save 6%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters

 

  • 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 : 9781847195425
Author(s) : Markus Stäuble, Sven Lüppken
Topics and Technologies : All Books, Web Development, 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.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 10 Sep 2012

Errata type: Code| Page number: 43

There is a typo in the code. <bean id="userservice" class="com.webflow2book.UserService" /> should be <bean id="userservice" class="com.webflow2book.UserServiceImpl" />.

 

Errata type: Code | Page number: 43

The </bean> after <bean id="userservice" class="com.webflow2book.UserService" /> is not required as the bean tag has already been closed. <bean id="userservice" class="com.webflow2book.UserService" /></bean> should be <bean id="userservice" class="com.webflow2book.UserServiceImpl" />.

 

Errata type: Typo| Page number: 73

(in the table) change: |Name | Description| |Id | The name of the input variable to: |Name | Description| |name | The name of the input variable

 

Errata type: Typo | Page number: 73

(in the table) change: |Name | Description| |Type | The type of the input variable. If you specify this, an automatic type conversion is attempted. The attribute is optional. to: |Name | Description| |type | The type of the input variable. If you specify this, an automatic type conversion is attempted. The attribute is optional.

 

Errata type: Typo | Page number:73

(in the table) change |Name | Description| |Value | With that optional attribute, you can map an input parameter to a fl ow variable. to |Name | Description| |value | With that optional attribute, you can map an input parameter to a fl ow variable.

 

Errata type: Technical| Page number: 82

Step 2 on page 82 should read "Search for the method > with the ValidationContext parameter" instead of "Search for the method > with the MessageContext parameter".

 

Errata type: Typo | Page number: 95

change "The paused flow executions are stored in a FlowExecutionRepostory between requests." to "The paused flow executions are stored in a FlowExecutionRepository between requests."

 

Errata type: Code | Page number: 97

change---> String fileName = flowResource.getFi lename(); to---> String fileName = flowResource.getFilename();

 

Errata type: Code| Page number: 147

The following part of the code: should be: <view-state id="review" model="issue" view="review.jspx"> <transition on="finish" to="saveBug"> </transition> </view-state></view-state>

 

Sample chapters

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

Frequently bought together

Spring Web Flow 2 Web Development +    Joomla! 1.5 Template Design =
50% Off
the second eBook
Price for both: $26.85

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

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

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
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