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

unexpected order of head contributions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC4
    • Fix Version/s: 1.5-RC5
    • Component/s: wicket
    • Labels:
      None

      Description

      when markup uses w-head contribution for static scripts

      <wicket:head>
      <script type="text/javascript" src="http://link.from.markup/h.js" ></script>
      </wicket:head>
      and then component adds something dynamically in renderHead
      @Override
      public void renderHead(IHeaderResponse response)

      { super.renderHead(response); response.renderJavaScriptReference("http://link.from.renderheadmethod/body.js"); }

      the dynamic link comes first and therefore does not work, repro case attached

      Expected: that programmatic contributions use after ones from markup

        Attachments

        1. wicket-3761-quickstart-1.4.tgz
          14 kB
          Martin Tzvetanov Grigorov
        2. w-head-contributions-order.zip
          21 kB
          Konstantin Ignatyev

          Issue Links

            Activity

              People

              • Assignee:
                mgrigorov Martin Tzvetanov Grigorov
                Reporter:
                kgignatyev Konstantin Ignatyev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: