Tapestry
  1. Tapestry
  2. TAPESTRY-963

Script component parameter 'script' is wrong in the documentation

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1
    • Component/s: Documentation
    • Labels:
      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.

        Issue Links

          Activity

          Hide
          Jesse Kuhnert added a comment -

          Fixed

          Show
          Jesse Kuhnert added a comment - Fixed

            People

            • Assignee:
              Unassigned
              Reporter:
              Leonardo Quijano Vincenzi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development