[ https://issues.apache.org/jira/browse/TAP5-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko closed TAP5-1121. -------------------------------- Fix Version/s: 5.2.0 Resolution: Fixed > Provide an annotation to support automatic discarding of the persistent > fields after a component or page method invocation > -------------------------------------------------------------------------------------------------------------------------- > > Key: TAP5-1121 > URL: https://issues.apache.org/jira/browse/TAP5-1121 > Project: Tapestry 5 > Issue Type: New Feature > Components: tapestry-core > Affects Versions: 5.1.0.5 > Reporter: Igor Drobiazko > Assignee: Igor Drobiazko > Fix For: 5.2.0 > > > 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(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.