Sorry for my english. I use DataTable
selection and I want to use DataTable
selection with ajax:
<h:form id="form">
<p:dataTable id="testTableId" var="testTable" value="#{testMB.entityList}"
selection="#{testMB.selectedList}" rowKey="#{testTable.id}"
tableStyleClass="table table-hover table-bordered">
<p:column selectionMode="multiple" style="width:16px;text-align:center"/>
<p:column headerText="testName">
#{testTable.name}
</p:column>
<f:facet name="footer">
<p:commandButton process="testTableId" action="#{testMB.deleteSelected}" value="It is working"/>
<p:commandButton process="testTableId" action="#{testMB.deleteSelected}" value="It is not working">
<p:ajax update="@form" />
</p:commandButton>
</f:facet>
</p:dataTable>
</h:form>
If I click to button It is working
then it is working. But if I click to ajax button It is not working
then it is not working.
How can I use it with ajax?