I am having a problem with Wicket markup for elements that should be programmatically there, but not structurally. It's not a mess, but I like to keep the page as neat as possible. It should be noted that I am a third-party developer, therefore, if possible, I would like to leave my hands out of java files.
Let's say that I have the following component HTML:
<ul class="configList" wicket:id="rows">
<li wicket:id="cols">
<div wicket:id="checkBoxThing"></div>
</li>
</ul>
And this is the template for checkBoxThing:
<wicket:panel>
<div wicket:id="checkboxContainer">
<label wicket:id="label"></label>
<input type="checkbox" wicket:id="checkbox" name="check" />
</div>
</wicket:panel>
When the page is viewed, the resulting layout is as follows:
<ul class="configList>
<li>
<div>
<div id="RandomWicketID">
<label>Checkbox Label</label>
<input type="checkbox" />
</div>
</div>
</li>
</ul>
DIV LI script; . -, , Wicket ? , - , , .
!