x Solutions//Tapestry Script 1.0//EN
-//Howard Ship//Tapestry Script 1.1//EN
-//Howard Lewis Ship//Tapestry Script 1.2//EN
.
The version 1.1, is largely backwards compatible to the old script, but adds a number of new features (if, if-not, foreach and the use of property paths with insert).
Version 1.2 removes the <insert> element, using an Ant-like syntax (${expression}
). It also replaces the attribute name property-path
with expression
(because OGNL is used).
A Tapestry Script is used, in association with the {@link org.apache.tapestry.html.Body} and/or {@link org.apache.tapestry.html.Script} components,to generate JavaScript for use with a Tapestry component. Two seperate pieces of JavaScript can be generated. The body section (associated with the body
element of the XML document) is typically used to define JavaScript functions (most often, event handlers). The initialization section (associated with the initialization
element of the XML document) is used to add JavaScript that will be evaluated when the page finishes loading (i.e., from the HTML <body> element's onLoad event handler).
@author Howard Lewis Ship
@version $Id: ScriptParser.java 243791 2004-02-19 17:38:13Z hlship $