THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Ajax support is included in many built-in components and component mixins via the the async
parameter (in Tapestry 5.4+) and the zone
parameter (for earlier versions).
Code Block | ||||
---|---|---|---|---|
| ||||
<t:actionlink t:id="someLink" async="true">update</t:actionlink>
...
<t:zone t:id="timeArea" id="timeArea">
The current time is ${currentTime}
</t:zone>
|
Code Block | ||||
---|---|---|---|---|
| ||||
@Inject
private Request request;
@InjectComponent
private Zone myZone;
...
void onActionFromSomeLink()
{
ajaxResponseRenderer.addRender(timeArea);
}
|
Zones
Zones are Tapestry's approach to performing partial page updates. A Zone component renders as an HTML element, typically a <div>.
...