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

at renderHead(IHeaderResponse response), cannot access js if url contains parameters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 1.5.7
    • Fix Version/s: None
    • Component/s: wicket
    • Environment:
      Tomcat

      Description

      at public void renderHead(IHeaderResponse response). method:

      this line has error. it gives can not access resource.
      // response.renderJavaScriptReference(new PackageResourceReference(getClass(),
      // "./timeline_js/timeline-api.js?timeline-use-local-resources=true&bundle=true"));
      But these lines have no problem.
      PageParameters pp= new PageParameters();
      pp.add("timeline-use-local-resources", "true");
      pp.add("bundle", "true");
      response.renderJavaScriptReference(new PackageResourceReference(getClass(),
      "./timeline_js/timeline-api.js"),pp,"MY_JS");

      not: detail conversation at http://apache-wicket.1842946.n4.nabble.com/wicketstuff-simile-timeline-1-5-5-Access-denied-to-resource-error-td4649855.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chrome1235 Kemal Dogan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: