領先一步
VMware 提供訓練和認證,加速您的進展。
了解更多Spring Web Flow 是 Spring 社群的產品,專注於協調 Web 應用程式中的使用者介面流程。
此版本包含許多改進和幾個令人振奮的新功能。 我們認為這是迄今為止最穩定的版本,並且最終成為 Spring Web Flow 1.0 最終路線圖功能完整的版本。 Spring Web Flow 1.0 最終版將在下週發布,並進行最小的更改。 在現在到那時之間,我們鼓勵您測試 1.0 RC4,以幫助在大型 1.0 發布之前捕獲任何剩餘的問題。
請注意,此版本中有影響使用者的變更。 1.0 RC3 或更早版本的使用者應查看 升級指南,其中詳細概述了這些變更。
1.0 RC4 中新的和值得注意的內容是一個令人興奮的列表,包括:
新的和值得注意的內容
作為 Spring Web Flow 1.0 最終版之前的最終候選版本,Spring Web Flow 1.0 RC4 引入了強大的新功能,例如渲染動作 (1)、評估動作 (2)、設定動作 (3)、快閃範圍 (4)、流程執行屬性 (5) 和暫停時始終重新導向 (6)。 它提供了增強的文件、更好的流程定義驗證、智慧預設值和完整的自訂 Spring 2.0 設定架構 (7),用於設定流程執行引擎。
<view-state id="displayResults" view="searchResults">
<render-actions>
<bean-action bean="phonebook" method="search">
<method-arguments>
<argument expression="flowScope.searchCriteria"/>
</method-arguments>
<method-result name="results"/>
</bean-action>
</render-actions>
<transition on="newSearch" to="enterCriteria"/>
<transition on="select" to="browseDetails"/>
</view-state>
<action-state id="makeGuess">
<evaluate-action expression="flowScope.game.makeGuess(requestParameters.guess)">
<evaluation-result name="guessResult"/>
</evaluate-action>
<transition on="CORRECT" to="showAnswer"/>
<transition on="*" to="enterGuess"/>
<transition on-exception="java.lang.NumberFormatException" to="enterGuess"/>
</action-state>
<action-state id="uploadFile">
<action bean="uploadAction" method="uploadFile"/>
<transition on="success" to="selectFile">
<set attribute="fileUploaded" scope="flash" value="true"/>
</transition>
</action-state>
<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-1.0.xsd">
<start-state idref="selectFile"/>
<view-state id="selectFile" view="fileForm">
<transition on="submit" to="uploadFile"/>
</view-state>
<action-state id="uploadFile">
<action bean="uploadAction" method="uploadFile"/>
<transition on="success" to="selectFile">
<set attribute="fileUploaded" scope="flash" value="true"/>
</transition>
</action-state>
</flow>
<flow:executor id="flowExecutor" registry-ref="flowRegistry">
<flow:execution-attributes>
<flow:alwaysRedirectOnPause value="false"/>
</flow:execution-attributes>
</flow:executor>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:flow="http://www.springframework.org/schema/webflow-config"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/webflow-config
http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd">
<!-- 啟動新的流程執行並恢復現有執行。-->
<flow:executor id="flowExecutor" registry-ref="flowRegistry"/>
<!-- 建立此應用程式的流程定義登錄 -->
<flow:registry id="flowRegistry">
<flow:location path="/WEB-INF/flows/**-flow.xml"/>
</flow:registry>
</beans>
有關這些功能的更多資訊,請參閱參考手冊。 Spring Web Flow 1.0 RC4 進一步完善了參考文檔,提供了 70 頁關於 SWF 用法的說明。 該手冊可在線上以 HTML 和 PDF 格式提供。
開始使用
開始使用 Spring Web Flow 的最佳方法之一是查看並演練範例應用程式。 我們建議查看所有範例,並從一開始就根據需要補充參考手冊資料。 發布版附帶了十個範例應用程式,每個範例都展示了一組不同的產品功能。 這些範例是
若要建立範例應用程式以進行快速評估,只需
所有範例專案都是可以直接匯入 Eclipse 的 Spring IDE 專案。
感謝所有支援此版本的社群成員。 Spring Web Flow 1.0 現在... 終於... 指日可待。
祝您使用愉快!
Spring Web Flow 團隊