5 Replies Latest reply on Feb 9, 2010 5:26 AM by Ilya Shaikovsky

    How to rerender newly added rows in rich:datatable?

    Alan Chan Newbie

      Hi All,

       

      I have a rich:datatable and an a4j:commandButton outside the table. Would like to press the button and add one new row to the datatable.

       

      One simple way is on the action of the button, add an element to the list bound to the datatable and rerender the whole table.

       

      However, it performs well only if the no. of rows of the table is small (within 10 rows). If say there are few dozens to hundreds of rows and want to add one row, the response and time is proportional to no. of rows, which can be slow.

       

      I'd like to find anyway to rerender the new rows only such that the rerender time is constant everytime, no matter the no. of rows. Any suggestions?

       

      Alan