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

HeaderItems with different PageParameters are treated as identical

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.5.0, 8.0.0-M5
    • 6.27.0, 8.0.0-M6, 7.8.0
    • wicket
    • None

    Description

      Given code like the following, where same ResourceReference is used for both resources but they have different PageParameters and different IDs, only one of them actually gets rendered in the page head:

      public void renderHead(IHeaderResponse response) {
          …
          response.render(JavaScriptHeaderItem.forReference(resRef, pageParameters1, “id1”));
          response.render(JavaScriptHeaderItem.forReference(resRef, pageParameters2, “id2”));
      }
      

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              boris@alum.mit.edu Boris Goldowsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: