-
1. Re: rich:dataTable number of rows changes on Ajax request
eicki Jun 12, 2008 8:49 AM (in response to johnmark13)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. -
2. Re: rich:dataTable number of rows changes on Ajax request
johnmark13 Jun 12, 2008 8:58 AM (in response to johnmark13)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.
Thanks again,
Mark.