Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Spring webflow 2.0 Ref.Guide by Mind Map: Spring webflow 2.0 Ref.Guide
0.0 stars - 0 reviews range from 0 to 5

Spring webflow 2.0 Ref.Guide

流程定義

Expression Languge

支援

Unified EL

OGNL

變數

scope, flowScope, viewScope, conversionScope, 預設放在Http Session, 可以跨流程, requestScope, flashScope, 流程啟動產生, view render清除, 流程結束移除, 取不到,EvaluationException

其他, requestParameters, currentUser, Principal, resourceBundle, flowExecutionUrl, view-state執行, uri, currentEvent, 與事件結合, transition, 取得變數

context, messageContext, 訊息, 成功, 錯誤, flowRequestContext, flowExecutionContext, externalContext, 使用者環境, session 變數

UI 畫面展示

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

用 vew 屬性對應

相對路徑

絕對路徑

與 Spring MVC 整合

處理變數

viewScope

指定

on-render, view轉換之前, 變數設定

model

展示畫面與model對應, 預設為所有public properties, <binder>...</binder> 自訂

動作, view-to-model, 資料驗證, Model 設定方法, validate${view-state-id}, 參數, MessageContext, 另外提供 validator, class:${model}Validator, method:validate${view-state-id}, 參數, Model, MessageContext

抑止, <transition bind="false"/>, <transition validate="false"/>

transition

狀態移轉

事件觸發, 沒有設定 to

方法, 回傳 boolean, 阻止狀態移轉, 一般的 plain method

global-transitions, 所有 view-state 都適用

訊息

MessageBuilder, 建立 : build(), 階層, info(), error(), warning(), fatal(), 訊息來源, 文字, 多國語言, resolvableArgs()

resourceBundle 變數

message.properties

popup

<view-state popup="true"/>

backing

<view-state history=""/>, discard, invalidate

ACTION動作執行

PersistenceContext

Flow Scope

啟動時產生

persistenceContext變數

<end-state commit="true"/>

注意 transaction, ReadOnly, non transaction?

JPA Integration, EntityManager, 封裝, <webflow:persistence-context/>, 自動根據狀態做 Persist, Persistence, Merge, Detach, Attach

Conversation Scope

一般是 non-transaction

手動 flush

View Scope

Create a read-only transaction at start

Commit and flush after event over

流程繼承

<flow abstract="true"/>

繼承方式

流程, 多重繼承, <flow parent="flowa, flowb"/>

狀態, 單一繼承, <view-state parent="flow#state"/>

<flow abstract="true/>

New node

新舊合併

新流程, 未繼承state, 保留, parent 合併到 child

自動merge, 相似者, id, all state, name, attribute, input, output, attributes, secured, on, transition, test, if, New node, 一定合併, flow, on-end, on-entry, on-exit, on-render, on-start, 不合併, bean-import, New node, evaluate, exception-handler, persistence-context, render, set, var

安全性

整合 Spring Security

SecurityFlowExecutionListener

accessDecisionManager

Role Based

系統設定

Spring MVC 整合

Ajax 整合

JSF 整合

Portlet 整合

測試