Fridolin Jackstadt created WICKET-6079:
------------------------------------------

             Summary: Problem with queued components and label
                 Key: WICKET-6079
                 URL: https://issues.apache.org/jira/browse/WICKET-6079
             Project: Wicket
          Issue Type: Bug
            Reporter: Fridolin Jackstadt


Quickstart is attached.

{code:title=HomePage.java|borderStyle=solid}
    queue(new TextField<>("input", Model.of("test")));
{code}

{code:title=HomePage.html|borderStyle=solid}
<label wicket:for="input">
  label:
  <input wicket:id="input"/>
</label>
{code}

Result:

{noformat}
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
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to