We have this code working on jetty but not working on Tomcat. I was
thinking there might have been a serialization issue where code is
serialized on the server and the class data doesn't get updated. Is it
possible that class files are serialized on the Server. How would I
check where Wicket serializes those files?
This code works fine in one environment but not the other.
This is the only error I am getting:
2010-09-01 08:04:15,193 ERROR - RequestCycle - Could not
find child with id: theField-radiogroup in the wicket:enclosure
org.apache.wicket.WicketRuntimeException: Could not find child with id:
theField-radiogroup in the wicket:enclosure
at
org.apache.wicket.markup.html.internal.Enclosure.checkChildComponent(Enc
losure.java:210)
at
org.apache.wicket.markup.html.internal.Enclosure.ensureAllChildrenPresen
t(Enclosure.java:249)
at
org.apache.wicket.markup.html.internal.Enclosure.onComponentTagBody(Encl
osure.java:169)
at org.apache.wicket.Component.renderComponent(Component.java:2626)
at
org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512)
at org.apache.wicket.Component.render(Component.java:2457)
at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
at
org.apache.wicket.markup.resolver.EnclosureResolver.resolve(EnclosureRes
olver.java:61)
at
org.apache.wicket.markup.resolver.ComponentResolvers.resolve(ComponentRe
solvers.java:81)
at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418)
at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
.java:1577)
at
org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.jav
a:1501)
at
org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:192
6)
final RadioChoice radioGroupYesNo = new
RadioChoice("theField-radiogroup",
new PropertyModel(ibaApplication, "field"),
Arrays.asList(Constants.YES_NO)) {
private static final long serialVersionUID = 110000L;
@Override
public boolean isVisible() {
return someData;
}
}; // End of add radio group //
radioGroupYesNo.setPrefix("");
radioGroupYesNo.setSuffix("");
form.add(radioGroupYesNo);
Berlin Brown