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

Problem with queued components and label

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.1.0, 7.2.0
    • Fix Version/s: 7.3.0, 8.0.0-M1
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: