Datatable does not update after successful ajax call

后端 未结 6 538
广开言路
广开言路 2021-01-12 06:17

I have a data table. Each row of the table has a commandButton called \'Remove\', which is supposed to remove that row from the model and the view and

6条回答
  •  孤独总比滥情好
    2021-01-12 06:44

    You are probably using Primefaces 2.2.1 as this seems like it is due to a common bug with the Primefaces dataTable component. Essentially what occurs is that ajax postbacks occurring from within elements of a dataTable will not result in a partial page update of elements in the dataTable.

    The simplest workaround is to invoke a postback from a button outside of the dataTable where its sole purpose is simply to partial page update the dataTable. This is not the most efficient solution as it results in two postbacks, however it does work.

    See my previous answer to this problem Here

提交回复
热议问题