How to reset form data including new created row
I have a form and a read-only table based on the same VO. If I insert an empty row into the form using createInsert the user can enter values and submit the new row.
Now I want to implement a functionality that the user can reset the form fields. Using <af:resetButton> the fields will be cleared but the empty row remains in the form and in the table.
If I use rollback functionality the row will be completely removed but rolls back also previous changes to the data.
I would like to have that only the new created row will be removed in the form and in the table.
What is the best way to do this ?