...
Section |
---|
Column |
---|
Code Block |
---|
| java | java |
---|
title | For Tapestry 5.3 and later |
---|
| java |
---|
|
@InjectComponent
private Zone userInput;
@InjectComponent
private Zone helpPanel;
@Inject
private AjaxResponseRenderer ajaxResponseRenderer;
void onActionFromRegister()
{
ajaxResponseRenderer.addRender("userInput",
userInput).addRender("helpPanel", helpPanel);
}
|
|
Column |
---|
Code Block |
---|
| java | java |
---|
title | For Tapestry 5.1, 5.2 and 5.3 |
---|
| java |
---|
|
@Inject
private Form registrationForm;
@Inject Block registrationHelp;
Object onActionFromRegister()
{
return new MultiZoneUpdate("userInput",
registrationForm).add("helpPanel",
registrationHelp);
}
|
Note that MultiZoneUpdate is deprecated starting with Tapestry 5.3. |
|
...
Code Block |
---|
|
<t:zone t:id="myZone" id="myzone"> ... </t:zone>
<t:actionlink t:id="update" zone="myzone">update</t:actionlink>
|
Since |
---|
|
If the Form or Link is enclosed by the Zone itself, then the {{zone}} parameter may be set to the special value {{^}}. The carat is evaluated, on the client side, by searching up form the form or link element for the first enclosing element with the {{t-zone}} CSS class. In this way, the client-side coordination can occur without having to know what the specific client-side id of the Zone is. Because of this, in many cases, it is no longer necessary to specify the Zone's {{id}} parameter. |
An Update div within a Zone div
Deprecated |
---|
_This feature is removed starting with Tapestry 5.4_ |
In many situations, a Zone is a kind of "wrapper" or "container" for dynamic content; one that provides a look and feel ... a bit of wrapping markup to create a border. In that situation, the Zone <div> may contain an update <div>.
...