Spring webflow 2.0 Ref.Guide

Get Started. It's Free
or sign up with your email address
Spring webflow 2.0 Ref.Guide by Mind Map: Spring webflow 2.0 Ref.Guide

1. Expression Languge

1.1. 支援

1.1.1. Unified EL

1.1.2. OGNL

1.2. 變數

1.2.1. scope

1.2.1.1. flowScope

1.2.1.2. viewScope

1.2.1.3. conversionScope

1.2.1.3.1. 預設放在Http Session

1.2.1.3.2. 可以跨流程

1.2.1.4. requestScope

1.2.1.5. flashScope

1.2.1.5.1. 流程啟動產生

1.2.1.5.2. view render清除

1.2.1.5.3. 流程結束移除

1.2.1.6. 取不到,EvaluationException

1.2.2. 其他

1.2.2.1. requestParameters

1.2.2.2. currentUser

1.2.2.2.1. Principal

1.2.2.3. resourceBundle

1.2.2.4. flowExecutionUrl

1.2.2.4.1. view-state執行

1.2.2.4.2. uri

1.2.2.5. currentEvent

1.2.2.5.1. 與事件結合

1.2.2.5.2. transition

1.2.2.5.3. 取得變數

1.2.3. context

1.2.3.1. messageContext

1.2.3.1.1. 訊息

1.2.3.2. flowRequestContext

1.2.3.3. flowExecutionContext

1.2.3.4. externalContext

1.2.3.4.1. 使用者環境

1.2.3.4.2. session 變數

2. ACTION動作執行

3. 流程繼承

3.1. <flow abstract="true"/>

3.2. 繼承方式

3.2.1. 流程

3.2.1.1. 多重繼承

3.2.1.2. <flow parent="flowa, flowb"/>

3.2.2. 狀態

3.2.2.1. 單一繼承

3.2.2.2. <view-state parent="flow#state"/>

3.3. <flow abstract="true/>

3.3.1. New node

3.4. 新舊合併

3.4.1. 新流程

3.4.1.1. 未繼承state

3.4.1.1.1. 保留

3.4.1.2. parent 合併到 child

3.4.2. 自動merge

3.4.2.1. 相似者

3.4.2.1.1. id

3.4.2.1.2. name

3.4.2.1.3. attributes

3.4.2.1.4. on

3.4.2.1.5. test

3.4.2.2. 一定合併

3.4.2.2.1. flow

3.4.2.2.2. on-end

3.4.2.2.3. on-entry

3.4.2.2.4. on-exit

3.4.2.2.5. on-render

3.4.2.2.6. on-start

3.4.2.3. 不合併

3.4.2.3.1. bean-import

4. 安全性

4.1. 整合 Spring Security

4.2. SecurityFlowExecutionListener

4.2.1. accessDecisionManager

4.3. Role Based

5. Spring MVC 整合

6. Ajax 整合

7. JSF 整合

8. 流程定義

9. UI 畫面展示

9.1. <view-state id="" view="" model=""/>

9.2. 用 vew 屬性對應

9.2.1. 相對路徑

9.2.2. 絕對路徑

9.2.3. 與 Spring MVC 整合

9.3. 處理變數

9.3.1. viewScope

9.3.2. 指定

9.3.3. on-render

9.3.3.1. view轉換之前

9.3.3.2. 變數設定

9.4. model

9.4.1. 展示畫面與model對應

9.4.1.1. 預設為所有public properties

9.4.1.2. <binder>...</binder> 自訂

9.4.2. 動作

9.4.2.1. view-to-model

9.4.2.2. 資料驗證

9.4.2.2.1. Model 設定方法

9.4.2.2.2. 另外提供 validator

9.4.3. 抑止

9.4.3.1. <transition bind="false"/>

9.4.3.2. <transition validate="false"/>

9.5. transition

9.5.1. 狀態移轉

9.5.2. 事件觸發

9.5.2.1. 沒有設定 to

9.5.3. 方法

9.5.3.1. 回傳 boolean

9.5.3.2. 阻止狀態移轉

9.5.3.3. 一般的 plain method

9.5.4. global-transitions

9.5.4.1. 所有 view-state 都適用

9.6. 訊息

9.6.1. MessageBuilder

9.6.1.1. 建立 : build()

9.6.1.2. 階層

9.6.1.2.1. info()

9.6.1.2.2. error()

9.6.1.2.3. warning()

9.6.1.2.4. fatal()

9.6.1.3. 訊息來源

9.6.1.3.1. 文字

9.6.1.3.2. 多國語言

9.6.2. resourceBundle 變數

9.6.3. message.properties

9.7. popup

9.7.1. <view-state popup="true"/>

9.8. backing

9.8.1. <view-state history=""/>

9.8.1.1. discard

9.8.1.2. invalidate

10. PersistenceContext

10.1. Flow Scope

10.1.1. 啟動時產生

10.1.2. persistenceContext變數

10.1.3. <end-state commit="true"/>

10.1.4. 注意 transaction

10.1.4.1. ReadOnly

10.1.4.2. non transaction?

10.1.5. JPA Integration

10.1.5.1. EntityManager

10.1.5.2. 封裝

10.1.5.3. <webflow:persistence-context/>

10.1.5.4. 自動根據狀態做 Persist

10.1.5.4.1. Persistence

10.1.5.4.2. Merge

10.1.5.4.3. Detach

10.1.5.4.4. Attach

10.2. Conversation Scope

10.2.1. 一般是 non-transaction

10.2.2. 手動 flush

10.3. View Scope

10.3.1. Create a read-only transaction at start

10.3.2. Commit and flush after event over

11. 系統設定

12. Portlet 整合

13. 測試