I have primefaces version 6.0
and i'm experiencing this issue of a dialog not showing up.
This is the button.
<p:commandButton id="newRequestButton"
class="btn btn-lg btn-primary"
value="New Request"
update=":newRequestForm:newRequestDialog"
oncomplete="PF('newRequest').show()" />
And this is the dialog
<p:dialog header="Request Definitions" widgetVar="newRequest"
resizable="true" width="600" showEffect="explode"
hideEffect="explode" modal="true" height="300"
class="modal-dialog">
<h:form id='newRequestForm'>
<h:panelGrid id="newRequestDialog" columns="1" cellpadding="4"
class="modal-content">
</h:panelGrid>
</h:form>
</p:dialog>
Whatcould be the problem. I have followed several answers such as this this and this to no avail.
EDIT:
Where exactly are dialogs
supposed to be placed in respect to forms
and the commandButtons
activating them?