[ 
https://issues.apache.org/jira/browse/WICKET-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529622
 ] 

Juergen Donnerstag commented on WICKET-993:
-------------------------------------------

Though I was able to reproduce it, I wonder what the the use case is? Or are 
you asking for a better error message?

Juergen

> wicket:enclosure doesn't work with multiple child components
> ------------------------------------------------------------
>
>                 Key: WICKET-993
>                 URL: https://issues.apache.org/jira/browse/WICKET-993
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>            Reporter: Martijn Dashorst
>            Assignee: Juergen Donnerstag
>             Fix For: 1.3.0-beta4
>
>
> <div wicket:id="example3">
>     <h3>Example 3 using wicket:enclosure</h3>
>     <span wicket:id="label1"></span><br />
>     <span wicket:id="label2"></span><br />
>     <wicket:enclosure child="label3">
>         <span wicket:id="label3"></span><br />
>         <span wicket:id="label4"></span><br />
>     </wicket:enclosure>
> </div>
>         WebMarkupContainer example3 = new WebMarkupContainer("example3");
>         example3.add(new Label("label1", "label 1"));
>         example3.add(new Label("label2", "label 2"));
>         example3.add(new Label("label3", "label 3"));
>         example3.add(new Label("label4", "label 4"));
>         add(example3);
>         example3.get("label3").setVisible(false);
> Gives an error that label4 is not added to the page

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to