Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.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 primefaces对话框不工作_Jsf_Primefaces - Fatal编程技术网

Jsf primefaces对话框不工作

Jsf primefaces对话框不工作,jsf,primefaces,Jsf,Primefaces,这是我的对话 <p:dialog closeOnEscape="true" resizable="false" header="Confirmation" widgetVar="groupconfirmation"> <center> Do you want to remove this Pin Priority group?<br /> <br />

这是我的对话

<p:dialog closeOnEscape="true" resizable="false"
            header="Confirmation" widgetVar="groupconfirmation">
            <center>
                Do you want to remove this Pin Priority group?<br /> <br />
                <p:commandButton value="Yes" oncomplete="groupconfirmation.hide()"
                    actionListener="#{pinProrityHandler.deletePinPriorityGroup}"
                    update="pinprioritygroup" />

                <p:commandButton value="No"
                    actionListener="#{platformGroupHandler.onGroupReset}"
                    oncomplete="groupconfirmation.hide()" update="pinprioritygroup" />
            </center>
</p:dialog>
我不知道为什么我的代码不起作用

我不熟悉primeface。

对于Primefaces=4.x

RequestContext context = RequestContext.getCurrentInstance();
context.execute("PF('groupconfirmation').show();")

定义“不工作”以及调试了什么?对于最新的PF版本,我确信存在客户端错误可能的重复。对于这些基本问题中的许多问题,stackoverflow中已经存在重复项。他们中的许多人有更多的上下文细节和微尘。找到它们并标记这些问题是一种很好的做法。保持如此“干净”
RequestContext context = RequestContext.getCurrentInstance();
context.execute("groupconfirmation.show();");
RequestContext context = RequestContext.getCurrentInstance();
context.execute("PF('groupconfirmation').show();")