title: How to create multiple p:confirm dialogs on a single page
body: <p>I have a need to ask for two different types of confirm dialogs on a single XHTML page using Primefaces. The current example in the Primefaces showcase is very basic. Here is what I have as a basic example:</p>
  
  <pre><code>&lt;h:form id="mydatatableform"&gt; 
  &lt;p:dataTable ... /&gt;
      &lt;p:column ... headerText="Column A Data"&gt;
          &lt;h:outputText ... /&gt;
      &lt;/p:column&gt;
      &lt;p:column ... headerText="Acknowledge Docs"&gt;
          &lt;p:commandButton value="Acknowledge" ...
              &lt;p:confirm ajax="true" header="Confrimation" message="Do Acknowledge you have received the docs?"/&gt;
          &lt;/p:commandButton&gt;
      &lt;/p:column&gt;
      &lt;p:column ... headerText="Accept or Deny"&gt;
          &lt;p:commandButton value="Accept or Deny" ...
              &lt;p:confirm ajax="true" header="Confrimation" message="Do you Accept or Deny the proposal?"/&gt;
          &lt;/p:commandButton&gt;
      &lt;/p:column&gt;
  &lt;/p:dataTable&gt;
  &lt;/h:form&gt;
  &lt;p:confirmDialog id="yesno" global="true"&gt;
      &lt;h:form&gt;
          &lt;p:commandButton value="Yes" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" /&gt;
          &lt;p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" /&gt;
      &lt;/h:form&gt;
  &lt;/p:confirmDialog&gt;
  </code></pre>
  
  <p>The good news is this works just fine. </p>
  
  <p>Unfortunately, The users DO NOT want Yes No for options in the dialog box for the Accept or Deny question. They want Accept or Deny in the dialog box. </p>
  
  <p>I cannot find any good examples of how to have two different confirmDialog options or a way to pick from one or the other.</p>
  
  <p>Ideally the second confrimDialog would look something like this:</p>
  
  <pre><code>&lt;p:confirmDialog id="acceptdeny" global="true"&gt;
      &lt;h:form&gt;
          &lt;p:commandButton value="Accept" type="button" styleClass="ui-confirmdialog-yes" icon="ui-icon-check" /&gt;
          &lt;p:commandButton value="Deny" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" /&gt;
      &lt;/h:form&gt;
  &lt;/p:confirmDialog&gt;
  </code></pre>
  
  <p>I am sure I need to remove the global=true and somehow reference each confirmDialog seperate in each p:confirm tag but I just cannot find a good example to do this and as I say the Primefaces showcase documentation is not very detailed on this point.</p>
  
  <p>Any advice?</p>