Details
-
New Feature
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
5.2
-
None
Description
The DiscardAfter annotation on a method causes the session context of the whole page to be discarded, even if the annotation is on a method in a component.
Instead of removing the whole page context it would be helpful to be able to choose to only remove the persistent fields of the component(and its subcomponents) but not from the page (i.e. dialogs).
Furthermore the according service componentResources.discardPersistentFieldChanges() would be beneficial when being used in the same manner.
For reference: http://tapestry.1045711.n5.nabble.com/DiscardAfter-on-component-level-td4847998.html