Tapestry
  1. Tapestry
  2. TAPESTRY-1080

wish Tapestry shell can add javascripts.

    Details

    • Type: Wish Wish
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.1
    • Component/s: Framework
    • Labels:
      None

      Description

      I wish tapestry shell component can add other js such as css.

      add css:
      <component id="shell" type="Shell">
      <binding name="stylesheets" value="ognl:

      {assets.base,assets.default}

      "/>
      </component>
      I wish can add javascriopt:
      <component id="shell" type="Shell">
      <binding name="javascripts" value="ognl:

      {assets.js1,assets.js2}

      "/>
      </component>

        Activity

        Hide
        Andreas Andreou added a comment -

        For the first part,
        http://tapestry.apache.org/tapestry4.1/components/Style.html and
        http://tapestry.apache.org/tapestry4.1/components/Relation.html will do the trick.

        For javascript, what's wrong with the
        http://tapestry.apache.org/tapestry4.1/components/Script.html component?
        Are you suggesting it should accept a .js file as a parameter (instead of a .script file) ?

        Show
        Andreas Andreou added a comment - For the first part, http://tapestry.apache.org/tapestry4.1/components/Style.html and http://tapestry.apache.org/tapestry4.1/components/Relation.html will do the trick. For javascript, what's wrong with the http://tapestry.apache.org/tapestry4.1/components/Script.html component? Are you suggesting it should accept a .js file as a parameter (instead of a .script file) ?

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            Jun Tsai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development