私はこのコードを持っています:
<p:contextMenu for="customersTable">
<p:menuitem value="Delete" update="customersTable" icon="ui-icon-close" actionListener="#{customerbean.onDeleteCustomer}"/>
</p:contextMenu>
<p:dataTable id="customersTable" var="customer" widgetVar="customerTable" value="#{customerbean.customerList}" paginator="true" rows="20" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="10,20,50,100" emptyMessage="#{text['table.customer.filter.notfound']}" filteredValue="#{customerbean.filteredCustomers}" editable="true" draggableColumns="true" rowKey="#{customer.id}" selection="#{customerbean.selectedCustomer}" selectionMode="single">
私の問題は、contextMenuで[削除]をクリックすると、レコード/行がBeanメソッドの呼び出しによってバックエンドから消去されているという意味ですべてが正常に機能しているが、新しいデータを反映してテーブルが更新されていないことです。 。