Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1199

ClassTransformation should include an API specifically for adding a component event handler to a component class

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.0
    • 5.3
    • tapestry-core
    • None

    Description

      There's a bunch of steps in making this happen; it would be nice if it was just something like:

      transformation.addEventHandler("activate", 0, new ComponentEventHandler(Event event)

      { ... }

      );

      The number is the minimum number of parameters.

      The semantics of this is that the handler is invoked first, with an invocation.proceed() at the end. The handler is not invoked if the event is aborted. The result of the invocation is overridden to true if the handler is invoked.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment