Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 如何防止在呈现或显示弹出面板时呈现后窗口?_Jsf_Richfaces - Fatal编程技术网

Jsf 如何防止在呈现或显示弹出面板时呈现后窗口?

Jsf 如何防止在呈现或显示弹出面板时呈现后窗口?,jsf,richfaces,Jsf,Richfaces,我遇到了一个问题,比如当弹出式面板呈现在后窗口或页面上时,调用也被呈现。如何停止后窗口的渲染。还请注意,我将JSF2.0与RichFaces4.0一起使用 <h:form> <rich:panel id="propertyPanel"> <rich:messages id="propertyFormMsg"></rich:messages> <a4j:commandLink action="#{addPr

我遇到了一个问题,比如当弹出式面板呈现在后窗口或页面上时,调用也被呈现。如何停止后窗口的渲染。还请注意,我将JSF2.0与RichFaces4.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>

............

非常感谢任何帮助我的人…

在显示弹出窗口的a4j:commandLink上,添加属性:limitRender=“true”。这将限制仅呈现在render=“xxxx”列表中指定的元素。

在rich:popup中使用
onclick=“{rich:component('savePropertyPopUp')}.hide();return false;”>