3 Replies Latest reply on Aug 5, 2008 3:01 AM by Shervin Asgari

    How to add a new row to a4j:repeat?

    Mike Finkenzeller Newbie

      I have run into an issue where the reRendering of a rich:dataTable on 100+ lines is extremely slow (10-25 sec). If I am just updating a single existing row in the table this is not a problem as I can use the ajaxKeys. The problem is when I need to simply add a new blank edittable row in the middle of the table I am then forced to reRender the entire table. Adding a datascroller to the table is not a option, the users want to see all the rows.

      The only solution I have been able to come up with is to just use javascript to quickly add a row to the table and then just send a request to the server to update the model separately thus skipping the reRender in the response. This does not work when the form is submitted since the rows get out of wack which I am guessing is because the component state is out of sync. What do I need to update on the server in terms of the UI/Component model to get this work OR is there a better solution.