[
https://issues.apache.org/jira/browse/WICKET-6088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Del Bene updated WICKET-6088:
------------------------------------
Fix Version/s: 8.0.0-M1
7.3.0
> Problem with queued components and setting the model
> ----------------------------------------------------
>
> Key: WICKET-6088
> URL: https://issues.apache.org/jira/browse/WICKET-6088
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.2.0, 8.0.0-M1
> Reporter: Fridolin Jackstadt
> Assignee: Andrea Del Bene
> Fix For: 7.3.0, 8.0.0-M1
>
> Attachments: wicket-6088.patch, wicket-queuing.zip
>
>
> The attached example works, if we use "add" instead of "queue". The
> quickstart is already shrinked to a minimum.
> 7.3.0-SNAPSHOT is also affected.
> {code:title=Panel.html|borderStyle=solid}
> <wicket:panel>
> <div wicket:id="container">
> <div wicket:enclosure="child">
> <p wicket:id="child">1</p>
> <a wicket:id="child2">2</a>
> </div>
> </div>
> </wicket:panel>
> {code}
> {code:title=TestPanel.java|borderStyle=solid}
> public TestPanel(String id) {
> super(id);
> WebMarkupContainer container = new WebMarkupContainer("container");
> container.queue(new Label("child") {
> @Override
> protected void onInitialize() {
> super.onInitialize();
> setDefaultModel(Model.of("test"));
> }
> });
> container.queue(new WebMarkupContainer("child2").setVisible(false));
> queue(container);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)