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

Resource filtering breaks the calculation of rendered resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0-beta2
    • 6.0.0-beta2
    • wicket
    • None

    Description

      The calculation of rendered resources at org.apache.wicket.markup.head.internal.HeaderResponse#rendered field is broken when org.apache.wicket.markup.head.filter.FilteringHeaderResponse is in use.
      The problem is that org.apache.wicket.markup.head.filter.FilteringHeaderResponse#getContent(String) creates its own instance of HeaderResponse and thus has its own 'rendered' set.
      If a filtered resource depends on a resource which is rendered in the head (i.e. in the default filtered bucked named 'headerBucket') then the latter is also rendered in the custom filter.

      Attachments

        1. WICKET-4566-problem.patch
          3 kB
          Martin Tzvetanov Grigorov

        Activity

          People

            papegaaij Emond Papegaaij
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: