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

Problem with queued components and label

    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 TextField<>("input", Model.of("test")));
      
      HomePage.html
      <label wicket:for="input">
        label:
        <input wicket:id="input"/>
      </label>
      

      Result:

      org.apache.wicket.WicketRuntimeException: Detach called on component with id '12' while it had a non-empty queue: ComponentQueue{queueSize=1, queue=[[TextField [Component id = input]], 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-label.zip
          15 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: