文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > Spring Web Flow Manuel
侵权投诉

Spring Web Flow Manuel

在上面看到了执行这个工作的流,这个流拥有三个state,他们分别是: 第一个,enterCriteria状态显示了一个search criteria(搜索标准)表单,这样用户就可以输入他(她)希望对什么进行搜索了。 当表单(form)被成功的提交(submit)并且进行了数据绑定(data binding)和验证(validation)之后,搜索被执行。在搜索结束以后,显示一个结果视图(result view)。 从结果视图中,用户可以选择一个他们希望进一步浏览的结果、或者

doc.guandang.net;

</flow>

<exception-handler ... /> </xxx-state>

<transition on="..." to="..." />

<transition on-exception="..." to="..." /> <exit-actions>...</exit-actions> <xxx-state id="myStateId">

<attribute name="..." value="..." /> <entry-actions>...</entry-actions> <start-state idref="myStateId" />

2.4.2. Java state API 例子

Flow flow = new Flow("id");

TransitionableState state = new XXXState(flow, "stateId"); state.getAttributeMap().put("name", "value"); state.getEntryActionList().add(...); state.getTransitionSet().add(...); state.getExitActionList().add(...);

一个State通常是由FlowBuilder在流装配时使用FlowArtifactFactory构造的。flow building子系统在org.springframework.webflow.engine. builder包内。

2.5. TransitionDefinition

一个transition在flow中定义了一条路径,它将flow从一个state带到另一个。这使用TransitionDefinition来构造。

记住所有的TransitionableStates都有一个或者更多的transitions,每个都定义了到在同一个flow中另一个state的路径(或者递归的路径回到同一state)。当进入一个transitionable state的时候,他会执行一系列的behavior。比如,一个叫做“Display Form”的TransitionableStates可以用来显示一个表单并暂停等待用户的输入。这个state的执行结果叫做事件,用来驱动state的转移的执行。比如,用户可以点击表单的提交按钮,这个按钮会发送一个满足转移到“处理提交”状态条件的“submit event”。图2.5.1就是这个事件驱动的转移执行的过程。

上一页第15页

你可能喜欢

热门文档

相关文档

  • Spring Web Flow

    state> <end-state id="returnToIndex"/> </flow> Spring Web Flow 概述上图展示的只是一个业务的流程,主要是为了让大家对 Spring Web Flow 的语义有个初始...

  • Spring_Web_Flow_介绍

    Spring Web Flow Introduction 管理Web应用页面流程 应用页面流程 什么是SWF 什么是 Spring Web Flow (SWF) 是Spring Framework的一个脱离 模块。这个模块是Spring ...

  • Spring+Web+Flow+2

    Spring Web Flow 2.0 入门本教程分析了 Spring Web Flow 2.0 的技术要点,并且通过创建一个示例应用程序,展示了 Spring Web Flow 2.0 的基本知识。 开始之前...

  • Spring_Web_Flow_介绍

    Spring Web Flow Introduction 管理Web应用页面流程 什么是SWF Spring Web Flow (SWF) 是Spring Framework的一个脱离 模块。这Spring Web Flow Introduction 管理Web...

  • 【论文】Spring Web Flow在自适应在线考试引擎中的应用

    Spring Web Flow在自适应在线考试引擎中的应用_专业资料。自适应在线考试引擎中涉及到与用户进行复杂的会话式导航功能,使用MVC框架开发时会导致业务逻辑和页面流程处理...

  • 升级到Spring+Web+Flow+2

    1.2 流定义语言 1 升级到Spring Web Flow 2 1.1 介绍本章说明如何将Spring Web Flow 1 (SWF 1) 应用程序升级到Spring Web Flow 2 (SWF 2) 。 1.2 ...

  • SpringWeb Flow 2.0 入门

    页码,1/21 SpringWeb Flow 2.0 入门简介: 本教程分析了 Spring Web Flow 2.0 的技术要点,并且通过创建一个示例应用程序,展示了 Spring Web Flow 2.0 的基...

  • spring-webflows

    简介: 本教程分析了 Spring Web Flow 2.0 的技术要点,并且通过创建一个示例应用程序, 展示了 Spring Web Flow 2.0 的基本知识。 配置 Spring Web MVC Spring...

  • 胡斌_SpringMVC学习笔记

    如果要在 Web 应用程序中处理更复杂的页面流程交互,建议集成 Spring Web Flow(http:// www.springframework.org/Webflow),Expert Spring MVC and Web Flow 一书...

  • Osworkflow2.8.0+hibernate3.1.3+spring1.2.8集成

    web-app_2_4.xsd"> <context-param> contextConfigLocation /WEB-INF/spring-osworkflow.xml </context-param> <servlet> <servlet-name>context</servlet...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email