title: JSF Primefaces Confirm Dialog not working
body: <p>im trying to show a confirmation dialog through a button before deleting a user, ive copy pasted the example from primefaces website but is not working, it only shows me the message from the actionListener... also tried p:confirmDialog with its own h:form outside my datatable but no success yet, is it because im using a template client? any ideas would be appreciated, heres my code:</p>
  
  <pre><code>&lt;body&gt;
  
      &lt;ui:composition template="./TemplateDefault.xhtml"&gt;            
          &lt;ui:define name="content"&gt;
  
                  &lt;h:outputStylesheet name="./css/modules.css" /&gt;                               
  
                  &lt;p:dataTable var="user" value="#{user.getList()}"&gt;
                      &lt;f:facet name="header"&gt;
                          USER LIST
                      &lt;/f:facet&gt;
  
                      &lt;p:column headerText="Id" style="width:5%"&gt;
                          &lt;h:outputText value="#{user.id}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column headerText="Name" style="width:20%"&gt;
                          &lt;h:outputText value="#{user.name}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column headerText="Password" style="width:20%"&gt;
                          &lt;h:outputText value="#{user.pwd}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column headerText="Email" style="width:20%"&gt;
                          &lt;h:outputText value="#{user.email}" /&gt;
                      &lt;/p:column&gt;
  
                      &lt;p:column headerText="Options" style="width:15%"&gt;
  
                          &lt;h:form&gt;
                              &lt;p:growl id="message" showDetail="true" /&gt;
  
                              &lt;p:commandButton actionListener="#{loginFormBean.msgDelete}" update="message" icon="ui-icon-trash" title="Delete User" &gt;                                 
                                  &lt;p:confirm header="Confirm" message="Are you sure?" icon="ui-icon-alert"/&gt;                                
                              &lt;/p:commandButton&gt;
  
                              &lt;p:confirmDialog global="true"&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;/p:confirmDialog&gt; 
                          &lt;/h:form&gt;
  
                      &lt;/p:column&gt;
  
                      &lt;f:facet name="footer"&gt;
                          Found #{user.getList().size()} users.                            
                      &lt;/f:facet&gt;                    
                  &lt;/p:dataTable&gt;    
  
          &lt;/ui:define&gt;
  
      &lt;/ui:composition&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p></p>