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

css/js files added as header contribution not added via ajax request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.14
    • 1.4.15
    • wicket
    • None

    Description

      I'm trying to upgrade from 1.4.13 to 1.4.14 and found that css and js files added as header contribution are not appearing in the ajax request.

      Details are:

      *I have a WikiPageCard (Panel subclass) class which adds two header contributions like this:
      this.add(CSSPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.css"));
      this.add(JavascriptPackageResource.getHeaderContribution(WikiPageCard.class, "WikiPageCard.js"));

      The first instance of this WikiPageCard component is only added to the page in an ajax request, so the css/js files are not part of the page during the initial load. I had a look at the Wicket's ajax debug window, and I can see that indeed these lines are missing from the ajax response with Wicket 1.4.14, but they are present in 1.4.13:

      {{{
      <link rel="stylesheet" type="text/css" href="../resources/com.intland.codebeamer.wicket.pages.wikiexporttopdf.WikiPageCard/WikiPageCard.css?w:lm=1289895391" />
      < <script type="text/javascript" src="../resources/com.intland.codebeamer.wicket.pages.wikiexporttopdf.WikiPageCard/WikiPageCard.js?w:lm=1289895391"></script>
      }}}

      Is this a regression, or just some change I'm missing?

      Attachments

        Activity

          People

            Unassigned Unassigned
            zluspai@freemail.hu Zoltan Luspai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: