JSF datatable: adding and removing rows clear rows values
问题 I have a h:datatable showing a list of rows, and the fields of each row are input fields. I render an "Add Row" button before the table, and a "Remove Row" button on each row of the table. The baking bean is viewScoped, and the buttons add/remove elements from the java list in the backing bean, and then return to the same view. I set the immediate attribute to "true" in the buttons in order to not validate the input fields when I add or remove a row. Everything works ok but one thing: the