我遇到了一個問題,例如,當呈現彈出面板的回調窗口或頁面的調用已經被渲染。我們如何停止渲染後窗。另請注意,我正在使用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>
的人誰可以幫助我非常感謝......
謝謝你的答案。 – 2012-04-13 20:03:53