Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.1.0.5
-
None
Description
It would be nice to have an annotation, @DiscardAfter, that could be placed on a handler method of page or a component .
public class Login {
@Persist
private String username;
@Persist
private String password;
@DiscardAfter
void onSuccess()
...
}
A ComponentClassTransformWorker could recognize the methods with such annotations, and call ComponentResources#discardPersistentFieldChanges().