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

Change Tapestry client-side JavaScript to make the tapx/Confirm component easier to implement

    XMLWordPrintableJSON

Details

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

    Description

      The tapx/Confirm component needs to "hook into" links and submit components, in order to hook up the confirmation. As currently implemented, this requires
      too much internal knowledge of the tapestry.js internals.

      The approach I've been taking is to replace a simple "click" event handler into two parts: a "click" event handler that cancels the event and fires a "tapestry:action" event, and a handler for the "tapestry:action" event. Using this, tapx/Confirm can override the default "click" event handler, but get back to the original logic after confirmation by firing the "tapestry:action' event.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: