【发布时间】:2017-12-07 18:53:21
【问题描述】:
这是我的对话。
<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>
这是我的java代码:
try {
RequestContext.getCurrentInstance().execute("groupconfirmation.show()");
} catch (Exception e) {
logger.error("Error {}", e);
}
我不知道为什么我的代码不起作用。
我是 primeface 的新手。
【问题讨论】:
-
定义“不工作”,你调试了什么?使用最近的 PF 版本,我确定存在客户端错误
标签: jsf primefaces