Class ZoneRefresh
- java.lang.Object
-
- org.apache.tapestry5.corelib.mixins.ZoneRefresh
-
@Events("refresh") public class ZoneRefresh extends java.lang.Object
This mixin periodically refreshs azone
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 azone
.Component Parameters 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. Component Events Name Description refresh