Fridolin Jackstadt created WICKET-6076:
------------------------------------------

             Summary: Problem with queued components and enclosure
                 Key: WICKET-6076
                 URL: https://issues.apache.org/jira/browse/WICKET-6076
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 7.1.0
            Reporter: Fridolin Jackstadt
         Attachments: wicket-queuing.zip

Quickstart is attached.

{code:title=HomePage.java|borderStyle=solid}
    WebMarkupContainer outer = new WebMarkupContainer("outer");
    WebMarkupContainer test = new WebMarkupContainer("test");
    add(outer);
    outer.queue(test);
{code}

{code:title=HomePage.html|borderStyle=solid}
<div wicket:id="outer">
  <div wicket:enclosure="test">
    <p wicket:id="test">test</p>
  </div>
</div>
{code}

Result:

{noformat}
org.apache.wicket.WicketRuntimeException: Could not find child with id: test in 
the wicket:enclosure
     at 
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:300)
     at 
org.apache.wicket.markup.html.internal.Enclosure.getChildComponent(Enclosure.java:278)
     at 
org.apache.wicket.markup.html.internal.Enclosure.getChild(Enclosure.java:138)
{noformat}



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

Reply via email to