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

Lazy registration in SharedResourceRequestTarget fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3
    • Component/s: wicket
    • Labels:
      None

      Description

      The lazy registration of shared resources which are not of scope org.apache.wicket.Application fails.
      It fails because registers SharedResourceRequestTarget the resource with

      sharedResources.add(resourceKey, packageResource);

      but should use

      sharedResources.add(scope, path,null,null, packageResource);

      The problem is that add(final String name, final Resource resource) expects a name for the resource and not the complete resource key.
      As consequence the resource is registered again and again with scope org.apache.wicket.Application.

        Attachments

          Activity

            People

            • Assignee:
              jcompagner Johan Compagner
              Reporter:
              tonyvegas Tony Vegas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: