Book Image

Spring Web Flow 2 Web Development

By : Markus Stäuble, Sven Lüppken
Book Image

Spring Web Flow 2 Web Development

By: Markus Stäuble, Sven Lüppken

Overview of this book

<p>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.<br /><br />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.<br /><br />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. <br /><br />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.<br /><br />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.</p>
Table of Contents (14 chapters)
Spring Web Flow 2 Web Development
Credits
About the Authors
About the Reviewers
Preface
flow.trac:The Model for the Examples

The complete flow for the example


For your overview, we want to show you a complete flow file (add.xml from the webapp/WEB-INF/issue/add directory) from our example application:

<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd" >
<persistence-context/>
<!-- The id of the issue which should be edited -->
<input name="id" />
<on-start>
<evaluate expression="issueService.findById(id)" result="flowScope.issue">
<attribute name="create" value="true" type="boolean"></attribute>
</evaluate>
</on-start>
<!--
If no view is specified a page with the same name
as the id is searched in the directory of the flow definition.
Additionally its possible to define a view with the attribute view.
-->
...