1
我想在頁面中有模態面板,但我希望能夠提供參數。 現在我這樣做是這樣的:打開帶參數的模態面板
面板:
<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>
這似乎不是最好的方法。什麼會更好?
所以你想要這個參數去服務器,不只是留在客戶端? – Bozho
不,我不想讓它去服務器。去服務器似乎毫無意義。 – mist