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

Header contribution is sometimes not rendered after the request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.3, 1.2.4
    • wicket
    • None
    • Tomcat 5.5.20, jdk 1.5.0_09, wicket 1.2.4

    Description

      The header contributions seem to be appearing and disappearing randomly. Let us have a simple webpage containing a link and a StringContributor. If I click on the link, the page refreshes and contributions appear normally. However, in the subsequent refreshes of that page in the browser (using the browser's refresh button) the contributions are not appearing.

      There was already some fix in the HeaderContribution issue in Wicket 1.2.3. Does this problem have something in common with the fixed HeaderContribution issue in the Wicket 1.2.3? This problem does not occur with Wicket 1.2.1.

      After a little bit of debugging, I am suspecting that the ,,entries" Set in the AbstractHeaderContributor is not properly cleaned up between the requests.

      I have tried to blindly patch the AbstractBehavior according to the latest version in the trunk (there is some additional cleanup in this latest version) and this seems to have solved the problem (however I am not sure, whether this is sufficient).

      Attachments

        1. AbstractBehavior-patched.java
          3 kB
          Robert Novotny
        2. sample-project.zip
          1.07 MB
          Robert Novotny

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              novotnyr Robert Novotny
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: