ajaxjsfdatatablerichfacesrichdatatable

Richfaces datatable - adding a new row without rerendering the whole datatable on the client side


The new row can be added to the associated server-side collection on an action event of a command button or a command link, and the newly added row can be displayed on the client if the whole table is re-rendered.

Is it possible to display the newly added row on the client side without needing to refresh the whole datatable, using the partial rendering, with the help of AjaxKeys or something ?

Thanks in advance for any help :)


Solution

  • You have to rerender whole datatable if you are adding a new row. AjaxKeys may be useful if you want to rerender existing columns.