i'm getting the following error:
WicketMessage: Could not find child with id: serial in the wicket:enclosure
Root cause:
org.apache.wicket.WicketRuntimeException: Could not find child with id:
serial in the wicket:enclosure
at
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enclosure.java:210)
at
org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresent(Enclosure.java:249)
at
org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Enclosure.java:169)
at org.apache.wicket.Component.renderComponent(Component.java:2626)
etc etc....
this is the part of my html that has the wicket:enclosure in it:
<html xmlns:wicket>
<wicket:extend>
<form wicket:id="deviceForm">
<div style="float: left; width: 30%;">
<table cellspacing="0" cellpadding="2">
<wicket:enclosure child="serial">
<tr>
<td><wicket:message key="serial">Serial</wicket:message></td>
<td><input type="text" wicket:id="serial" size="40"
maxlength="32" /></td>
</tr>
</wicket:enclosure>
etc etc...
and in the java code i'm adding the component with id "serial" to the form
"deviceForm".
anyone has any idea why this is happening?