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

Missing renderCSSReference- and renderJavascriptReference-Methods in HeaderResponseContainerFilteringHeaderResponse (have to be overwritten from DecoratingHeaderResponse)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.5.3
    • None
    • wicket

    Description

      A AbstractDependencyRespectingResourceAggregatingHeaderResponse cannot be used in addition to a because the css and javascript is rendered by the "render" method of the HeaderResponseContainerFilteringHeaderResponse:

      /**

      • Renders a single resource reference. This is called from
      • {@link #renderIfNotAlreadyRendered(Set, ResourceReferenceAndStringData)}

        for references that

      • had not been rendered elsewhere.
      • @param data
      • the reference (and associated data) to conditionally render.
        */
        protected void render(ResourceReferenceAndStringData data) { ResourceUtil.renderTo(getRealResponse(), data); }

      If you take al look into the ResourceUtil.renderTo Method, you will see that the used "renderCSSReference"- and "renderJavascriptReference"-methods are not overwritten in the HeaderResponseContainerFilteringHeaderResponse class.

      So a filtering of javascript and css References in different buckets is not possible, if you additionally would like to aggregate the css and javascript references in different groups.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cwellekoetter Christian Wellekötter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: