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

The form submit event handler method should have access to the source of the event

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • tapestry-core
    • None

    Description

      Right now if you want to have more than one submit button in a form and you want to implement different execution logic for each you have to:

      • implement an event listener for both buttons that sets a local field that signals which button was pressed.
      • implement a form event listener method that reads the local field value and executes whatever logic based on that.

      (such a solution is provided on http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/multiplesubmits1)

      If the form event listener could know which button triggered the commit this type of logic would be much simpler to implement.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hpalma Hugo Palma
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: