0

我遇到了一个问题,比如将弹出面板渲染到后窗口或已经进行调用的页面时。我们怎样才能停止后窗的渲染。另请注意,我将 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>

非常感谢任何会帮助我的人...

4

2 回答 2

1

在显示弹出窗口的 a4j:commandLink 上,添加属性:limitRender="true"。这会将渲染限制为您在 render="xxxx" 列表中指定的元素。

于 2012-04-13T17:40:53.700 回答
1

onclick="#{rich:component('savePropertyPopUp')}.hide();return false;">在 rich:popup 内部使用

于 2013-02-27T11:23:28.450 回答