Spring Webflow,评估转换中忽略的表达式 [英] spring webflow, evaluate expression ignored in transition
本文介绍了Spring Webflow,评估转换中忽略的表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个流程定义为流程
I have a flow definition as flows
<view-state id="view1" view="/jsp/view1.xhtml">
<transition on="login" to="view1" >
<evaluate expression="'test1'" result="viewScope.t1"/>
<evaluate expression="'test2'" result="viewScope.t2"/>
</transition>
</view-state>
View1.xhtml:
View1.xhtml:
${t1}<br/>
${t2}
在view1.xhtml中,我打印了两个变量t1和t2,但仅打印了"test1".第二个表达式在过渡时被忽略.为什么会这样?
In view1.xhtml, I printed the two variables t1 and t2, but only 'test1' is printed. The second expression is ignored in transition. Why this happened?
推荐答案
查看全文