<p:overlaypanel>仅显示一次

时间:2018-09-04 19:34:18

标签: java jsf primefaces

我在代码中使用了p:overlayPanel组件,该组件由commandButton触发,但是overlayPanel仅在第一次出现时出现,然后没有出现,我可以看到一些闪烁的效果,但它不会一直持续屏幕。 我在这里想念什么吗?

        <p:panelGrid columns="2" id="releasedToContact" styleClass="tab-content" style="width:100%">
            <p:overlayPanel id="chooseRAddressPanelId" for="chooseReleasedToAddress" widgetVar="chooseRAddressPanel"
                            hideEffect="fade" dynamic="true" style="width:600px" >
                <p:dataTable var="address" 
                             scrollable="true" rowKey="#{address.cn}"
                             value="#{controller.parentContactAddresses}" 
                             selectionMode="single" 
                             selection="#{controller.chosenAddress}"
                             rows="5" paginator="true">
                    <p:ajax event="rowSelect" listener="#{controller.releasedToAddressChosen}" update="@(.ui-tabs-panel:visible .tab-content)" />
                    <p:focus />

                    <p:column headerText="Type">
                        <h:outputText value="#{address.type}" />
                    </p:column>

                    <p:column headerText="Contact">
                        <h:outputText value="#{address.lastName.concat(' ').concat(address.firstName)}" />
                    </p:column>
                </p:dataTable>
            </p:overlayPanel>
      </panelGrid>

0 个答案:

没有答案
相关问题