1. Wicket
  2. WICKET-188

Header contribution is sometimes not rendered after the request


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.3, 1.2.4
    • Component/s: wicket
    • Labels:
    • Environment:
      Tomcat 5.5.20, jdk 1.5.0_09, wicket 1.2.4


      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).

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

        Issue Links


          Robert Novotny created issue -
          Robert Novotny made changes -
          Field Original Value New Value
          Attachment sample-project.zip [ 12348054 ]
          Robert Novotny made changes -
          Attachment AbstractBehavior-patched.java [ 12348055 ]
          Igor Vaynberg made changes -
          Assignee Igor Vaynberg [ ivaynberg ]
          Igor Vaynberg made changes -
          Fix Version/s 2.0 [ 12312113 ]
          Fix Version/s 1.3 [ 12312114 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 1.2.5 [ 12312236 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Robert Novotny made changes -
          Link This issue is related to WICKET-68 [ WICKET-68 ]


            • Assignee:
              Igor Vaynberg
              Robert Novotny
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: