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

Problem with queued components and auto linking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.1.0, 7.2.0
    • 7.3.0, 8.0.0-M1
    • wicket
    • None

    Description

      Quickstart is attached.

      HomePage.java
          queue(new WebMarkupContainer("test"));
      
      HomePage.html
      <wicket:link>
        <a href="test.html">
          <wicket:container wicket:id="test">test</wicket:container>
        </a>
      </wicket:link>
      

      Result:

      Caused by: org.apache.wicket.WicketRuntimeException: Detach called on component with id '0' while it had a non-empty queue: ComponentQueue{queueSize=1, queue=[[WebMarkupContainer [Component id = test]], null, null, null, null, null, null, null]}
              at org.apache.wicket.MarkupContainer.onDetach(MarkupContainer.java:1984)
              at org.apache.wicket.Page.onDetach(Page.java:868)
              at org.apache.wicket.Component.detach(Component.java:1162)
              ... 28 more
      

      Attachments

        1. wicket-queuing-in-link.zip
          14 kB
          Fridolin Jackstadt

        Activity

          People

            bitstorm Andrea Del Bene
            frido-lbm Fridolin Jackstadt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: