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

Deprecate MultiZoneUpdate, replace with an injectable service to collect zone updates

    XMLWordPrintableJSON

Details

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

    Description

      MultiZoneUpdate presumes that there's a single place where all the zone to be updated are known. This is not necessarilly the case.

      I'd like to see something like:

      @Inject
      private ZoneUpdater zoneUpdater();

      Object onSuccess()
      {
      zoneUpdater.update("foo", fooBlock);
      zoneUpdater.update("bar", barBlock);

      return myZone.getBody();
      }

      The main point here is that different event handlers would all be able to invoke ZoneUpdater.update() .

      This would also allow a single response to render main content (for the requesting Zone on the client) plus zone updates to named zones.

      Attachments

        1. zone_updater_with_zone-updater_as_return.patch
          41 kB
          Taha Hafeez Siddiqi
        2. zone_updater_with_zone-updater_as_return.patch
          41 kB
          Taha Hafeez Siddiqi
        3. zone-updater.patch
          37 kB
          Taha Hafeez Siddiqi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: