Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: prop:componentResources.id example

...

Unlike many other situations, Tapestry relies on you to specify useful and unique ids to Zone components, then reference those ids inside EventLink (or ActionLink, or Form) components. Using Zone components inside any kind of loop may cause additional problems, as Tapestry will uniqueify the client id you specify (appending an index number).

If you create a component that contains a zone, and you use that component in a loop, you'll likely need to set the client-side id like this:

 

Code Block
languagexml
<t:zone t:id="myzone" id="prop:componentResources.id">

 

See this JumpStart Example for details.

The show and update function names (Tapestry 5.3 and earlier only) are converted to lower case; all the methods of Tapestry.ElementEffect should have all lower-case names. Because client-side JavaScript is so fluid (new methods may be added to existing objects), Tapestry makes no attempt to validate the function names ... however, if the names are not valid, then the default show and highlight methods will be used.

...