-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.1.0.5
-
Fix Version/s: 5.2.0
-
Component/s: tapestry-core
-
Labels:None
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().