Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3675

Usage of JavaScriptCompressor by resources other than PackageTextTemplates is lost!

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-M1, 1.5-M2.1, 1.5-M3, 1.5-RC1, 1.5-RC2, 1.5-RC3, 1.5-RC4
    • Fix Version/s: 1.5-RC5
    • Component/s: wicket

      Description

      With the refactoring of ResourceReferences, Resources and ResourceStreams it seems that the JavaScriptCompressor is no longer used for resources other than a PackageTextTemplate. In Wicket 1.4 it used to be in JavascriptPackageResource but seeing as this class is gone the JavaScriptCompressor is no longer used.

      There should be either a subclass of PackageResource which uses the JavaScriptCompressor or a way to intercept the length and the bytes which are written to the stream in PackageResource line 327.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              hielkehoeve Hielke Hoeve
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: