[
https://issues.apache.org/jira/browse/WICKET-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529633
]
Martijn Dashorst commented on WICKET-993:
-----------------------------------------
The usecase is that the enclosure should hide all child components when the
identified component by the child attribute is hidden. The idea is that you
don't need to add your own web markup container for this. Otherwise the child
id is a useless attribute -> with only one child component it is easy to detect
the visiblity.
> 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.