Tapestry 5
  1. Tapestry 5
  2. TAP5-1121

Provide an annotation to support automatic discarding of the persistent fields after a component or page method invocation

    Details

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

        Activity

        Igor Drobiazko made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Resolution Fixed [ 1 ]
        Igor Drobiazko made changes -
        Field Original Value New Value
        Assignee Igor Drobiazko [ igor.drobiazko ]
        Igor Drobiazko created issue -

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Igor Drobiazko
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development