原点:对话框不显示4 [英] primefaces :dialog does not show 4

查看:187
本文介绍了原点:对话框不显示4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这个组件上有一个问题

当我在这个按钮上,没有任何显示,我的问题是p:对话框没有显示,请我需要你的帮助, p>

我在原理上工作5.2 Liferay 6.2,SDK 6.2。



I have a problem with this component

when I clik on this button, nothing appears,My Problem is p:dialog is not getting displayed,Please I need your help ,

<p:commandButton id="selectButton" icon="ui-icon-search" title="View" oncomplete="introViewDialog.show()"
update=":form:displayForm" immediate="true" value="lister" >
<f:setPropertyActionListener target="#{introBean.selectedIntro}" value="#{intro}"/>
</p:commandButton>

我的表单:

<h:form id="displayForm">
<p:dialog id="displayDialog" header="Afficher" widgetVar="introViewDialog" resizable="false" showEffect="clip" hideEffect="fold" appendToBody="true">
<h:panelGrid id="display" columns="2" cellpadding="4">
<h:outputText value=" id    :" />
                    <h:outputText value="#{introBean.selectedIntro.id}" />
                    <h:outputText value="titre  :" />
                    <h:outputText value="#{introBean.selectedIntro.titre}" />
                    <h:outputText value="dateDebut  :" />
                    <h:outputText value="#{introBean.selectedIntro.dateDeb}" />
                    <h:outputText value="desc   :" />
                    <h:outputText
                        value="#{introBean.selectedIntro.desc}" />

                    <h:outputText value="active :"
                        rendered="#{introBean.selectedIntro.active}" />
                    <h:outputText
                        value="Elementdeclancheur"
                        rendered="#{introBean.selectedIntro.elementdeclancheur}" />

                    <h:outputText value="RTL    :"
                        rendered="#{introBean.introVO.rtl}" />



                    <h:outputText value="jsOnComplete   :" />
                    <h:outputText value="#{introBean.introVO.jsOnComplete }" />
                    <h:outputText value="themeCss   :" />
                    <h:outputText value="#{introBean.introVO.themeCss}" />

                </h:panelGrid>
            </p:dialog>
        </h:form>


推荐答案

您正通过以下代码访问widgetVar 的onComplete = introViewDialog.show()。 PF5.2将不起作用,因为它在PF4中被弃用,在PF5中被删除。您的浏览器控制台中应该有错误。

You are accessing the widgetVar via following code oncomplete="introViewDialog.show()". This won't work on PF5.2, since it is deprecated in PF4 and removed in PF5. There should be an error in your browser console.

http://blog.primefaces .org /?p = 3184


在4.0中,widgetVar.method()用于访问客户端api一个组件已被弃用,有利于PF('widgetVar')。show()来保持窗口范围的清洁。

In 4.0, widgetVar.method() usage to access the client side api of a component has been deprecated in favor of PF(‘widgetVar’).show() to keep the window scope clean.

请使用以下语法: oncomplete =PF('introViewDialog')。show(); / code>

Please use following syntax: oncomplete="PF('introViewDialog').show()";

这篇关于原点:对话框不显示4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆