Tapestry 5
  1. Tapestry 5
  2. TAP5-1871

Tapestry should warn when a page imports the same asset via multiple JavaScriptStacks

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.3.2, 5.3.3, 5.4
    • Fix Version/s: None
    • Component/s: tapestry-core
    • Labels:

      Description

      When an asset is used in multiple stacks and a page imports those stacks, the asset is added to the page and - for JS assets - executed multiple times. It would be nice if Tapestry would detect this kind of "misconfiguration" and throw an exception or at least log a warning.

        Issue Links

          Activity

          Jochen Kemnade created issue -
          Jochen Kemnade made changes -
          Field Original Value New Value
          Attachment 0001-Throw-an-exception-if-an-asset-is-to-be-added-to-a-s.patch [ 12518021 ]
          Jochen Kemnade made changes -
          Labels patch
          Jochen Kemnade made changes -
          Affects Version/s 5.3.3 [ 12320045 ]
          Labels patch patch test-patch
          Jochen Kemnade made changes -
          Link This issue relates to TAP5-2238 [ TAP5-2238 ]
          Jochen Kemnade made changes -
          Affects Version/s 5.4 [ 12316401 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Jochen Kemnade
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development