我遇到的问题就像将弹出式面板渲染到后窗或调用的页面一样。我们如何停止后窗的渲染。另请注意,我正在使用Jsf 2.0和Richfaces 4.0。
<h:form>
<rich:panel id="propertyPanel">
<rich:messages id="propertyFormMsg"></rich:messages>
<a4j:commandLink
action="#{addPropertyBean.createPropertyPreAction}"
title="Add New Property"
oncomplete="#{rich:component('savePropertyPopUp')}.show()"
render="propertyPopUpOutPutPanel"
>
<a4j:param
assignTo="#{addPropertyBean.selectedPropertyId}"
value="#{addPropertyBean.selectedPropertyId}"></a4j:param>
<h:graphicImage styleClass="imageLink" library="images"
name="add.png" />
</a4j:commandLink>
</rich:panel>
</h:form>
这是我的弹出式面板:
<rich:popupPanel id="savePropertyOfferPopUp" modal="false"
resizeable="true" height="430" width="800">
<f:facet name="header">
<h:outputText value="Save Property " />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#"
onclick="#{rich:component('savePropertyPopUp')}.hide()">
<h:graphicImage styleClass="noImageBorder" library="images" width="16" height="16" name="close.png" title="close" />
</h:outputLink>
</f:facet>
<h:form id="propertyPopUpForm">
............
</h:form>
</rich:popupPanel>
非常感谢能帮助我的人......
答案 0 :(得分:1)
在显示弹出窗口的a4j:commandLink上,添加属性:limitRender =“true”。这将限制仅渲染到您在render =“xxxx”列表中指定的元素。
答案 1 :(得分:1)
在rich:popup
中使用onclick="#{rich:component('savePropertyPopUp')}.hide();return false;">