title: How to disable the p:dialog 'X' close button
body: <p>Referring to the example for PrimeFaces (Java / JSF) to create a modal dialog,
  <a href="https://www.primefaces.org/showcase/ui/overlay/dialog.xhtml" rel="nofollow noreferrer">https://www.primefaces.org/showcase/ui/overlay/dialog.xhtml</a></p>
  <pre class="lang-html prettyprint-override"><code>&lt;p:dialog header=&quot;Header&quot; widgetVar=&quot;dlg1&quot; minHeight=&quot;40&quot; width=&quot;350&quot; showEffect=&quot;fade&quot;&gt;
      &lt;p class=&quot;m-0&quot;&gt;Lorem ipsum dolor sit amet...&lt;/p&gt;
  &lt;/p:dialog&gt;
  </code></pre>
  <p>This creates a modal dialog with a 'X' close button at the right corner.
  I want a solution to disable this close button for PrimeFaces dialog.</p>