Tapestry 5
  1. Tapestry 5
  2. TAP5-1570

Zone elements in the client should trigger events so that the application can react to changes

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.0, 5.1, 5.0.16
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      It seems that time and time again for each T5 project (6 out of 7 so far) I find I need to override tapesty.js methods to add additional support for zones. Currently there is only 1 event fired from a zone (Tapestry.ZONE_UPDATED_EVENT), I'd like to suggest/request there be at least 4 events total (3 new ones):

      1) ZONE_BEFORE_AJAX_REQUEST_EVENT: This would be fired before the ajax request is sent to the server. Listeners should be able to cancel the ajax request (similiar to the way tapestry allows a form submission to be canceled)

      2) ZONE_BEFORE_UPDATE_EVENT: This would be fired after the ajax request returns and just before the zone is updated via the processReply() method. Again, listeners should be able to cancel the update.

      3) ZONE_UPDATED_EVENT: already and is listed here for completeness.

      4) ZONE_AJAX_REQUEST_ERROR_EVENT: This would be fired if the ajax request errored out for the zone. (includes error data)

      references to mailing list: http://tapestry.1045711.n5.nabble.com/More-javscript-zone-events-please-td4401005.html

        Issue Links

          Activity

          Joe Klecko created issue -
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Affects Version/s 5.1.0.0 [ 12313419 ]
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          Project Tapestry [ 10573 ] Tapestry 5 [ 12310833 ]
          Key TAPESTRY-2778 TAP5-1570
          Affects Version/s 5.1 [ 12313499 ]
          Affects Version/s 5.1.0.0 [ 12313428 ]
          Affects Version/s 5.0.16 [ 12313427 ]
          Affects Version/s 5.0 [ 12312018 ]
          Affects Version/s 5.1 [ 12312964 ]
          Affects Version/s 5.0.16 [ 12313417 ]
          Component/s tapestry-core [ 12312470 ]
          Component/s JavaScript [ 12311181 ]
          Massimo Lusetti made changes -
          Link This issue is duplicated by TAP5-1525 [ TAP5-1525 ]
          Robert Zeigler made changes -
          Issue Type Bug [ 1 ] Improvement [ 4 ]
          Jochen Kemnade made changes -
          Link This issue is related to TAP5-682 [ TAP5-682 ]
          Howard M. Lewis Ship made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Howard M. Lewis Ship [ hlship ]
          Fix Version/s 5.4 [ 12316401 ]
          Resolution Fixed [ 1 ]
          Howard M. Lewis Ship made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Howard M. Lewis Ship made changes -
          Summary More javascript events for zones Zone elements in the client should trigger events so that the application can react to changes
          Howard M. Lewis Ship made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Joe Klecko
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development