1
這是我的網絡流的一部分:是有可能訪問在網絡流上下文值包屬性?
<?xml version="1.0" encoding="UTF-8"?>
<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-2.0.xsd"
parent="estatGeneral" start-state="a_cargar_info">
<attribute name="caption" value="consultaDeutesHandler.filAriadna" />
<action-state id="a_cargar_info">
<evaluate expression="consultaDeutesHandler.primeraCarrega(flowRequestContext, usuari)"></evaluate>
<transition on="success" to="v_formulariDeutesInici"/>
<transition on="error" to="error"/>
</action-state>
我想插入文本從屬性捆綁或支持豆成一個屬性。我嘗試這樣做:
<attribute name="caption" value="consultaDeutesHandler.filAriadna" />
其中consultaDeutesHandler.filAriadna
是返回一個字符串的函數。取而代之的是預期值的我只看到「consultaDeutesHandler.filAriadna」的字面。
有沒有辦法從屬性包中設置屬性的值?
這個偉大的,但標題的返回值沒有得到任何二傳手,但TY。 – ZaoTaoBao
你不應該需要一個setter。這將創建一個名爲「標題」,你可以在流動XML和視圖訪問其他地方的流量範圍的變量。 –
好的,所以如果我的變量在:RequestContext ctx \t \t \t ctx.getActiveFlow()。getCaption(),我該怎麼做呢? TY。 – ZaoTaoBao