如何在flow xml中获取或传递来自XHTML页面中selectoneMenu字段的值。
发布于 2009-12-04 16:48:24
我不确定我是否理解了您所说的内容,但是您可以在您的xhmtl上这样做:
<selectOneMenu value="#{flowScope.value}">
...
</selectOneMenu>这会将selectOneMenu的值存储到flowScope中。你也可以尝试其他的作用域,根据你想要的(viewScope,flashScope,等等)-看看SWF文档)。
发布于 2014-03-08 18:20:52
如何在flow xml中获取或传递来自XHTML页面中selectoneMenu字段的值。
<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 https://stackoverflow.com/questions/1843912
复制相似问题