Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0.5
    • 5.2.0
    • tapestry-core
    • 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().

      Attachments

        Activity

          People

            igor.drobiazko Igor Drobiazko
            igor.drobiazko Igor Drobiazko
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: