if ( ! calledOnce) {
calledOnce = true;
return;
}
// Turn off all checkboxes (Booleans) when non-existent in form
DynaProperty[] dps = getDynaClass().getDynaProperties();
for (int i = 0; i < dps.length; i++) {
DynaProperty dp = dps[i];
String name = dp.getName();
if (get(name) instanceof Boolean) {
Boolean value = (Boolean) get(name);
if (request.getParameter(name) == null) {
set(name, Boolean.FALSE);
}
}
}