I found the solution. The event I was looking for is "events.zone.refresh".
See where it is triggered in module "t5/core/zone".

@Lenny Primak
Thanx for pointing out the T5.4 branch of Flowlogix library, I didn't
notice it at first. Your mixin "ZoneLoadingSpinner" is exactly what I need,
but there is one bug you may want to fix: in file spinner-zone-overlay.js
on line 35 you need to change "events.zone.willUpdate" to
"events.zone.refresh".
With this fix, the mixin adds a spinner overlay for all of these cases:
- Zone update triggered by actionLink / eventLink
- Zone update triggered by form submit
- Grid inplace update after click on paging link
- Grid inplace update after click on sorting link
- (I didn't test other cases)

Thanx for sharing your code :)
Martin











On Thu, Mar 20, 2014 at 1:28 PM, Martin Nagl <mn...@mtbiker.sk> wrote:

> In T5.4, the event "t5:zone:did-update" fires only after zone has been
> updated, which is too late to add overlay to the zone.
>
> I need to add the zone overlay just after user clicks on a ajax-enabled
> EventLink / ActionLink (including paging and sorting links in Grid), or
> just after user submits an ajax-enabled Form - before server starts
> processing the request (which may take a few seconds).
>
> In T5.3, one could attach to Tapestry.TRIGGER_ZONE_UPDATE_EVENT, which was
> being fired before request was sent to server, so it was suitable for this
> case. In T5.4, looking at module "t5/core/events" I found no event which
> would fire before an ajax request for zone update is sent to server.
>
> Maybe a different approach is needed?
>
>
>
>

Reply via email to