Class ZoneRefresh
java.lang.Object
org.apache.tapestry5.corelib.mixins.ZoneRefresh
This mixin periodically refreshs a
zone
by triggering an event on the server using ajax requests.
Server-side, the mixin triggers the "refresh" event with the mixin's context. A container may but
does not need to handle the event. If the event is handled and a value is returned, that value is
used to render the response. Otherwise, the Zone's body is re-rendered.
Note: This mixin is only meant for a zone
.Name | Type | Flags | Default | Default Prefix |
---|---|---|---|---|
context | Object[] | prop | ||
Context passed to the event | ||||
period | int | Required | literal | |
Period between two consecutive refreshes (in seconds). If a new refresh occurs before the previous refresh has completed, it will be skipped. |
Name | Description |
---|---|
refresh |
-
Method Summary