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();")