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

ZoneRefresh mixin triggers refresh event with wrong context

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.6, 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:

      Description

      ZoneRefresh mixin triggers refresh event with context populated from parameter instead of context from event link.

      Before render script it creates event link with context:

      private Object createEventLink()

      { Link link = resources.createEventLink("zoneRefresh", context); return link.toAbsoluteURI(); }

      But then it uses context parameter instead of context from event link:

      Object onZoneRefresh()
      {
      CaptureResultCallback<Object> callback = new CaptureResultCallback<Object>();
      resources.triggerEvent(EventConstants.REFRESH, context, callback);

      if(callback.getResult() != null)

      { return callback.getResult(); }

      return zone.getBody();
      }

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              sody Ivan Khalopik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: