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

HeaderItems with different PageParameters are treated as identical

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.5.0, 8.0.0-M5
    • Fix Version/s: 6.27.0, 8.0.0-M6, 7.8.0
    • Component/s: wicket
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: