This is my dialog.
<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>
And this is my java code:
try {
RequestContext.getCurrentInstance().execute("groupconfirmation.show()");
} catch (Exception e) {
logger.error("Error {}", e);
}
I don't know why my code is not working.
I am new to primeface.