I'm triying to delete a row from the database . I have a datatable with a button "delete" that call my bean
<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 ">
<h:column>
<f:facet name="header">Delete Shipment</f:facet>
<p:commandButton value="delete" id="submitButton" type="submit"
action="#{reportBean.delete()}"
styleClass="ibm-btn-pri ibm-btn-gray-50 ibm-btn-small"
/>
</h:column> </h:dataTable>
this is my bean
public void Delete(Shipment shipment) {
db.remove(shipment);
}
when put a breakpoint I realize that JSF didn't call the bean