Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Select to list of components that can update a zone

...

A Zone can be updated via an EventLink, ActionLink or ActionLink Select component, or by a Form. All of these components support a zone parameter, which provides the id of the Zone's <div>. Clicking such a link will invoke an event handler method on the server as normal ... except that the return value of the event handler method is used to send a partial page response to the client, and the content of that response is used to update the Zone's <div> in place.

...

Tapestry.ElementEffect Function Purpose

Result

highlight()

(the default) highlight changes to an already-visible zone

show()

make the zone visible if it isn't already visible

highlight()

Highlight changes to an already-visible zone

slidedown()

Scroll scroll the content down

slideup()

Slide slide the content back up (opposite of slidedown)

fade()

Fade fade the content out (opposite of show)

To have Tapestry update a zone without the usual yellow highlight effect, just specify "show" for the update parameter:

Code Block
<t:zone t:id="myZone" t:update="show">

You may also define and use your own JavaScript effect function (with lower-case names), like this:

...