2009-12-03 90 views
0

如何从XHTML页面中的selectoneMenu字段获取或传入流xml中的值。Spring Web Flow

+0

更改问题的标题,以便它反映真正的问题。 – Bozho 2009-12-04 08:51:59

回答

0

我不知道如果我明白你说什么,但你可以在你的XHMTL做到这一点:

<selectOneMenu value="#{flowScope.value}"> 
... 
</selectOneMenu> 

这将您selectOneMenu用于的值保存到你的flowScope。您也可以根据自己的需要尝试其他范围(viewScope,flashScope等) - 查看SWF文档)。

0

如何从XHTML页面中的selectoneMenu字段获取或传入流xml中的值。

<table> 
<tr> 
<td> 
    <h:outputLabel 
    id="memberListLabel" value="MemberList}" 
    for="memberList" styleClass="outputLabel" /> 
</td> 
<td> 
    <p:selectOneMenu id="memberList" 
    value="#{memberForm.member}" 
    tabindex="1" 
    style="font-size:11px;float:left;width:159px;" > 
<f:selectItem itemValue="" itemLabel="---Select---" /> 
<f:selectItems value="#{memberList}" itemLabel="--Select--" /> 
</p:selectOneMenu> 
</td> 
</tr> 
</table> 

your action will take care,save the data in flowScope not in xhtml page