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

Lazy registration in SharedResourceRequestTarget fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.3
    • wicket
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: