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

Move the logic for creating the proper PackageResource from PackageResourceReference to ResourceReferenceRegistry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.4.0
    • 6.5.0
    • wicket
    • None

    Description

      org.apache.wicket.request.resource.PackageResourceReference#getResource() has a logic that decides what type of PackageResource to return depending on the file extension. It supports only .css and .js at the moment.
      ResourceReferenceRegistry (RRR) uses this logic for unknown ResRefs.

      It will be better if this mapping is moved to RRR and be possible to add custom mappings.

      Attachments

        1. resref-registry.tgz
          21 kB
          Martin Tzvetanov Grigorov

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: