org.apache.tapestry5.corelib.components.Zone.xdoc Maven / Gradle / Ivy
Show all versions of tapestry-core Show documentation
It's pretty standard to bind the id parameter of a zone; the zone parameter of ActionLink
and Form are theclient-side element id, not the component id. They are often,
but not always, the same. Binding the id parameter ensures that a particular, fixed value
is used.
Binding the zone parameter of the ActionLink, EventLink or Form (the "trigger"
component) is what triggers the partial-render and update logic.
The event handler method for the clicker component increments the count, then
returns the body of the zone. The body will be re-rendered (reflecting the new count),
and sent to the client, which will update the zone in place, and trigger and animation
(by default, a simple yellow fade) to draw the user's attention.
Not shown here, but fully valid, is to include JavaScript libraries and generate
initialization JavaScript. This fully consistent with ordinary full-page renders.