【发布时间】:2013-07-23 17:19:31
【问题描述】:
我有一个使用 Richfaces 的 JSF 页面,并带有一些这样的帮助按钮:
<rich:componentControl for="panelHelp" event="oncomplete" operation="show" />
调用的面板是这样的:
<rich:modalPanel id="panelHelp" minHeight="250" minWidth="500"
keepVisualState="true" resizeable="true" moveable="true">
<f:facet name="header">
<h:outputText value="Help" />
</f:facet>
<f:facet name="controls">
<h:commandLink value="">
<h:graphicImage value="/close2.png" title="Close" />
<rich:componentControl for="panelHelp" event="onclick" operation="hide" />
</h:commandLink>
</f:facet>
<h:panelGrid columns="1" width="100%">
<h:outputText escape="false" id="txtHelp"
value="#{msgHelp}" style="width: 100%; height: 190px" />
</h:panelGrid>
</rich:modalPanel>
但是,每当我按下按钮关闭面板时,它都会重新加载整个页面,而不是简单地隐藏面板。
我做错了什么,或者有更好的方法吗?
我使用的是 Richfaces 3.3.3 版
【问题讨论】:
标签: jsf richfaces modal-dialog