【发布时间】:2011-02-21 12:29:04
【问题描述】:
我想在页面中有模态面板,但我希望能够提供一个参数。 现在我这样做:
面板:
<rich:modalPanel id="panel" width="500" height="435">
...
[#{bean.tempId}]
</rich:modalPanel>
打开面板的按钮:
<ui:repeat ... var="item">
<h:form>
<a4j:commandLink id="link" oncomplete="Richfaces.showModalPanel('panel');" reRender="panel">
<f:setPropertyActionListener value="#{item.id}" target="#{bean.tempId}"></f:setPropertyActionListener>
text...
</a4j:commandLink>
</h:form>
</ui:repeat>
这似乎不是最好的方法。有什么更好的?
【问题讨论】:
-
所以你想让这个参数发送到服务器,而不是仅仅停留在客户端?
-
不,我不希望它进入服务器。去服务器好像没什么意义。