Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
4.0.2
-
None
Description
In the Script component description (http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Script.html) two parameters are declared:
scriptPath String in no The path of a resource (on the classpath) containing the script. One of either scriptPath or scriptAsset must be specified.
scriptAsset IAsset in no A reference to a script as an IAsset parameter. One of either scriptPath or scriptAsset must be specified.
But in Script's JWC file, the scriptPath "property" is mapped to the parameter "script":
<parameter name="script" property="scriptPath" >
<description>
The resource path of the script to execute.
</description>
</parameter>
Even the examples in Script's documentation use "script" instead of "scriptPath". This can be confusing to the user.
Attachments
Issue Links
- is duplicated by
-
TAPESTRY-972 Fix parameters in documentation for @Script
- Closed