In my application it works. I have a datatable and (simplified) an input field and a command button. If user hits the command button the value of the input field is added to the list of the datatable and the panel around the datatable is ajax-rererendered.
So the only difference to your solution is that I do not directly rerender the datatable, but instead a panel.
Hi, thanks for your reply!
I can not believe how poorly I phrased my question, sorry.
The datatable reRenders perfectly, that isn't the problem.
The problem is that on each row there is an a4j:commandLink. If my original table had 4 rows, and the rerendered table has 8, then the commandLinks in rows 5 - 8 will not function correctly. I am making the assumption that this is down to the fact that these have been added to the DOM, and that the viewhandler isn't properly aware of them.
Does that make sense? and does anyone know a way to fix it without needing to reload the page.