Having a look at the datagrid, i found that there is a method "manageDataGrid" in AbstractBaseFormController is called after editComamndBeforeBind. This method is used to carry the index values for addList and removeList across submission.
However, sometimes I would like to reset those values if errors happen after bindAndValidate. Since the case is, if user add a new row, then get a binding error at the first time. if the value is persisted, then if next time the user get a binding error again, it will add a new row again. It does the same thing at remove as well!
Currently I reset those values at referenceData method.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Having a look at the datagrid, i found that there is a method "manageDataGrid" in AbstractBaseFormController is called after editComamndBeforeBind. This method is used to carry the index values for addList and removeList across submission.
However, sometimes I would like to reset those values if errors happen after bindAndValidate. Since the case is, if user add a new row, then get a binding error at the first time. if the value is persisted, then if next time the user get a binding error again, it will add a new row again. It does the same thing at remove as well!
Currently I reset those values at referenceData method.