<p:overlaypanel ... =“”when =“”= =“”opening =“”或=“”cloasing =“”

时间:2015-04-28 07:44:23

标签: primefaces

=“” <预= “”> <p:overlayPanel appendToBody="true" id="panel_l#{level.name.hashCode()} f{filterTypeConfiguration.filterType.name.hashCode()}" for="conrolForm_l#{level.name.hashCode()}f #{filterTypeConfiguration.filterType.name.hashCode()}: button_l#{level.name.hashCode()}f #{filterTypeConfiguration.filterType.name.hashCode()}" dynamic="true" >

... 在overlayPanel我有:

    <p:inputText value="#{filterTypeConfiguration.textToSearch}">
      <p:ajax  id="ajaxFilterSearch" event="keyup" update="overlayForm_l
        #{level.name.hashCode()} f#{filterTypeConfiguration.filterType.name.hashCode()}
:select_l#{level.name.hashCode()}
f#{filterTypeConfiguration.filterType.name.hashCode()}"
</p:inputText>

当overlayPanel打开或关闭时,我需要inputText中的干净数据。

1 个答案:

答案 0 :(得分:0)

我还没有使用p:overlayPanel但是我能够触发p:dialog diaglodReturn事件,我想它应该像这样类似

 <p:ajax event="dialogReturn" update="@form" listener="#{backing.refreshPage}" />

来自primefaces展示的示例,如何为按钮添加动作属性?

<p:commandButton id="imageBtn" value="Basic" type="button" action="#{backing.refresh}" />
    <p:overlayPanel id="imagePanel" for="imageBtn" hideEffect="fade">
        <p:graphicImage name="/demo/images/nature/nature1.jpg" width="300" />
    </p:overlayPanel>