You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/07/03 15:45:21 UTC

[jira] [Reopened] (WICKET-3842) The wicket:enclosure attribute doesn't work properly

     [ https://issues.apache.org/jira/browse/WICKET-3842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reopened WICKET-3842:
-------------------------------------


It's not fixed in 1.4.x.

> The wicket:enclosure attribute doesn't work properly
> ----------------------------------------------------
>
>                 Key: WICKET-3842
>                 URL: https://issues.apache.org/jira/browse/WICKET-3842
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: Adrian Sandor
>             Fix For: 1.5-RC6
>
>         Attachments: patch.txt
>
>
> When the hidden child becomes visible again, it fails to appear on the page. The same thing works correctly with the wicket:enclosure tag.
> Example code:
> public class TestPage extends WebPage {
> 	public TestPage() {
> 		final Label l = new Label("msg", "hi");
> 		add(l);
> 		add(new Link<Void>("b") {
> 			private static final long serialVersionUID = 1L;
> 			@Override
> 			public void onClick() {
> 				l.setVisible(!l.isVisible());
> 			}
> 		});
> 	}
> }
> TestPage.html:
> <html xmlns:wicket>
> <body>
> <div wicket:enclosure="msg"><span wicket:id="msg"></span></div>
> <input type="button" value="Toggle" wicket:id="b">
> </body>
> </html>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira