Undo changes in adf table row
435209May 26 2010 — edited May 26 2010I have a table surrounded by a panel collection. In panel collection i have a button for action "createInsert" of view object to add new rows in table. I have created a method in ViewRowImpl with following signature:
public void undoChanges(){
refresh(REFRESH_UNDO_CHANGES | REFRESH_FORGET_NEW_ROWS);
}
Now i have button in first column of each row in a table for "undochanges". I have done "partialsubmit" true for this button and in partial trigger of table i have given the reference id of this button. Now everything works fine as expected but there is one problem. When i add new row and in row there are some fields required. Now in that row without entering any data, i presses "undo" button, it gives error that some values are missing so in order to avoid this error, i set "immediate" property of button "true". Now it is working fine but ripple effect of this is that when i changes some existing rows and presses "undo" button, table refreshes but does not show old values. I have printed values in above method for changed attribute and i found that in fact values are changing but not reflecting on table inspite of refreshing. What's the reason for it?