Spring Web Flow是一个用于构建Web应用程序的框架,它提供了一种声明性的方式来描述应用程序的流程

Spring Web Flow 2.0的发布引入了新特性和JavaScript模块。

Spring Web Flow是一个用于构建Web应用程序的框架,它提供了一种声明性的方式来描述应用程序的流程。在2.0版本中,引入了一些新的特性和对JavaScript模块的支持。

新特性包括:

  1. 改进的流程定义:Spring Web Flow 2.0提供了更灵活和强大的流程定义方式,使得开发者可以更容易地定义复杂的业务流程。
  2. 增强的状态管理:新版本增强了状态管理的功能,使得开发者可以更好地处理和管理应用程序的状态。
  3. 集成Spring Security:Spring Web Flow 2.0与Spring Security进行了更紧密的集成,提供了更好的安全性支持。
  4. 支持多种视图技术:新版本支持多种视图技术,包括JSP、Thymeleaf等,使得开发者可以根据需要选择合适的视图技术。
  5. 引入JavaScript模块:Spring Web Flow 2.0引入了对JavaScript模块的支持,使得开发者可以在前端使用JavaScript进行交互和动态更新。

Spring Web Flow 2.0 引入了许多新特性和改进,以增强其作为Web应用程序开发框架的能力和灵活性。以下是一些主要的新特性:

  1. 注解支持

    • Spring Web Flow 2.0 增加了对注解的支持,使得开发者可以通过注解来定义流程状态、转换等,减少了XML配置文件的使用,提高了代码的可读性和维护性。
  2. 集成Spring Security

    • 新版本加强了与Spring Security的集成,提供了更强大的安全性控制机制,确保Web应用程序的安全性。
  3. 简化的配置

    • 通过简化配置和提供默认实现,Spring Web Flow 2.0 减少了开发者在配置上的工作量,使得开发过程更加高效。
  4. 增强的视图解析器

    • 新版本增强了视图解析器的功能,支持更多的视图技术(如JSP, Thymeleaf等),并提供了更好的视图解析策略。
  5. 动态流程定义

    • Spring Web Flow 2.0 允许在运行时动态修改流程定义,这为构建灵活、可扩展的Web应用程序提供了更多的可能性。
  6. 改进的异常处理

    • 新版本改进了异常处理机制,能够更好地捕获和处理流程执行中的异常,提高了系统的健壮性。
  7. 支持异步操作

    • 新版本增加了对异步操作的支持,使得Web应用程序可以更好地应对高并发场景,提高系统的响应速度和性能。
  8. 模块化设计

    • Spring Web Flow 2.0 采用了模块化设计,方便开发者根据需要选择和定制功能模块,提高了框架的灵活性和可扩展性。
  9. 增强的文档和示例

    • 新版本提供了更详细的文档和丰富的示例代码,帮助开发者更快地上手并深入理解框架的使用方法。

We are pleased to announce general availability of Spring Web Flow 2. Download | Documentation

Spring Web Flow is the project in the Spring Portfolio that focuses on providing the infrastructure for building and running rich web applications. As a Spring project, Web Flow builds on the Spring Web MVC framework to provide:

A domain-specific-language for defining reusable controller modules called flows
An advanced controller engine for managing conversational state
First-class support for using Ajax to construct rich user interfaces
First-class support for using JavaServerFaces with Spring

The modules of the Web Flow 2 distribution and their relationship with the Spring Framework are illustrated below:
What’s in Web Flow 2

Web Flow 2 Distribution Components

Spring Web MVC

The Spring Web MVC framework, a module of the Spring Framework distribution, provides the foundation for developing web applications with Spring using the proven ModelViewController paradigm. Each of the modules of the Web Flow distribution builds on this foundation.
Spring Web Flow

The Web Flow module is a MVC extension that allows you to define Controllers using a domain-specific-language. This language is designed to model user interactions that require several requests into the server to complete, or may be invoked from different contexts.
Spring JavaScript

Spring JavaScript is a JavaScript abstraction framework that makes it easy to write unobtrusive JavaScript to progressively enhance a web page with behavior. The framework consists of a public JavaScript API along with an implementation that builds on the Dojo Toolkit. Spring.js aims to simplify the use of Dojo for common enterprise scenarios while retaining its full-power for advanced use cases.

Spring JavaScript can work with any server-side framework. The Web Flow 2 distribution includes convenient integration between Spring JavaScript and Spring Web MVC for processing Ajax requests.
Spring Faces

The Spring Faces module contains Spring’s support for JavaServerFaces. This support allows you to use JSF as a View technology within a familiar Spring MVC and Web Flow Controller environment. With this architectural approach, you combine the benefits of the JSF UI component model with the benefits of a Web MVC architecture. Spring Faces also includes a lightweight component library built on Spring JavaScript for declaratively enabling Ajax and client-side validation behaviors in a progressive manner.
Themes of the Web Flow 2 Release

In addition to introducing the new Spring Faces and Spring Javascript modules, the Web Flow 2 release effort addresses two major themes: Integration and Simplicity.
Integration

Across each of the modules, the Web Flow 2 distribution adds a number of interesting integrations that allow you to enrich your web applications. These integrations support:

Using Spring Security to secure your flows in a declarative manner
Using Tiles for JSP page composition and Ajax partial-rendering
When using JSF, using Facelets for page composition and layout
When using JSF, using Apache Trindad and JBoss RichFaces component libraries
Using the Dojo widget system in a progressive and unobtrusive manner; a manner that degrades gracefully if JavaScript is not available on the client

Simplicity

The flow definition language has been simplified tremendously in Web Flow 2 while becoming more powerful overall. These simplifications include:

An appoximate 50% overall reduction in lines-of-code when comparing a version 2 flow definition with its version 1 equivalent (example: version 2 vs version 1)
A concise syntax for invoking actions using an Expression Language (EL), with support for both the Unified EL and OGNL
Declarative model binding and validation, with support for convention-over-configuration
Support for reuse at both the flow and state levels using flow definition inheritance
Enhanced modularity, allowing a flow and its dependent resources to be packaged together in a self-contained bundle

Release Notes

Web Flow 2 requires Java 1.4 or greater and runs on all major Java EE platforms including Tomcat, Jetty, Websphere, WebLogic, and JBoss.

Web Flow 2 requires Spring Framework 2.5.4 or greater.

Web Flow 2 has been certified by SpringSource as "Platform Ready" and is fit to run on the SpringSource dm Server in OSGi-enabled web applications.

Getting Started

Get started using Web Flow by downloading the release and walking through the reference applications. Supplement with the documentation as you go to familiarize yourself with the feature set.



To get started using a build system such as Maven or Ant+Ivy, access Web Flow artifacts from the Maven Central Repository.



To get started using Web Flow in an OSGi environment on the SpringSource Application Platform, download the platform and get Web Flow bundles from the SpringSource Enterprise Bundle Repository.

Additional Community Resources

Read the interview with Keith Donald and Jeremy Grelle of SpringSource describing what’s new in the Web Flow 2 distribution in more detail



Watch the Ajaxian.com interview where the release and Spring JavaScript are discussed with Dion Almaer.



Get involved with the Web Flow 2 community on the Spring Community Forums



Explore Spring Web reference applications on-line. The Spring Travel application showcases the integrated Web Flow 2 feature set and is included in the distribution. The SpringSource Enterprise Bundle Repository is a real-world application in production built on Spring 2.5 and Spring Web Flow 2.0.



If you are an existing Web Flow 1 user, review the migration guide to help in upgrading to Web Flow 2. The WebFlowUpgrader tool automates the conversion of your flows to the version 2 syntax



Submit bug reports and requests for enhancement using the Web Flow issue tracker



Track updates to the Web Flow source repository with Fisheye



Checkout the Web Flow source code from the Spring Project SVN Repository



Watch for upcoming articles on Web Flow 2 by subscribing to springframework.org

comments powered by Disqus

Spring Web Flow 2 是一个用于构建基于 Spring 框架的 web 应用程序的模块。它提供了一种声明式的方法来管理 web 应用程序的状态和导航,使得开发者可以更加专注于业务逻辑的实现,而不必过多关心底层的流程控制。

Spring Web Flow 2 的主要特点包括:

  1. 声明式的流程定义:通过 XML 配置文件或 Java 注解来定义流程状态、转换和视图,使得流程控制更加直观和易于维护。
  2. 集成 Spring MVC:与 Spring MVC 紧密集成,可以方便地在 Spring Web Flow 中使用 Spring MVC 的功能,如控制器、视图解析器等。
  3. 支持多种视图技术:可以与 JSP、Thymeleaf、FreeMarker 等多种视图技术配合使用,满足不同项目的需求。
  4. 提供丰富的功能:如表单处理、验证、数据绑定、异常处理等,帮助开发者快速构建功能强大的 web 应用程序。
  5. 灵活的部署选项:可以独立部署,也可以与其他 Spring 应用程序集成部署。

Spring Web Flow 2 适用于需要复杂流程控制的 web 应用程序,如电子商务网站、在线银行系统、工作流管理系统等。通过使用 Spring Web Flow 2,开发者可以提高开发效率,降低代码复杂度,同时保证应用程序的稳定性和可扩展性。

我们很高兴宣布Spring Web Flow 2全面上市。 文献资料

Spring Web Flow是Spring产品组合中的项目,致力于提供用于构建和运行富Web应用程序的基础结构。 作为Spring项目,Web Flow建立在Spring Web MVC框架的基础上,以提供:

 用于定义称为流的可重用控制器模块的领域特定语言
 用于管理对话状态的高级控制器引擎
 对使用Ajax构建丰富的用户界面的一流支持
 对在Spring中使用JavaServerFaces的一流支持

Web Flow 2发行版的模块及其与Spring框架的关系如下所示:
Web Flow 2中的内容
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值