title: p:commandButton doesn't work inside a dataTable - JSF
body: <p>I'm triying to delete a row from the database . I have a datatable with a button "delete" that call my bean</p>
  
  <pre><code>&lt;h:dataTable id="InfoTable" value="#{shipmentBean.getDocs()}"
                          var="o" pt:data-widget="datatable" pt:data-searching="true"
                          pt:data-scrollaxis="x" pt:data-info="true"
                          pt:data-ordering="true" pt:data-paging="true"
                          pt:data-col-Reorder="true" pt:data-dom="lfrtBip"
                          pt:data-buttons='[{"extend":"excel", "text":"Export to Excel", "className":"ibm-btn-pri
                       ibm-btn-blue-50 ibm-btn-small", "messageTop": null, "messageBottom": null, "title": null}]'
                          styleClass="ibm-data-table ibm-altcols ibm-padding-small nowrap "&gt;
                          &lt;h:column&gt;
                              &lt;f:facet name="header"&gt;Delete Shipment&lt;/f:facet&gt;
                              &lt;p:commandButton value="delete" id="submitButton" type="submit"
                                  action="#{reportBean.delete()}" 
                                  styleClass="ibm-btn-pri ibm-btn-gray-50 ibm-btn-small"
                               /&gt;
                          &lt;/h:column&gt; &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>this is my bean</p>
  
  <pre><code>public void Delete(Shipment shipment)  {
  
              db.remove(shipment);
  }
  </code></pre>
  
  <p>when  put a breakpoint I realize that JSF didn't call the bean</p>
  
  <p><a href="https://i.stack.imgur.com/fZ7Te.png" rel="nofollow noreferrer">the firebug when i click "delete" button</a> </p>