}
}
private void doWithStandardControl() throws JspException, IOException {
JspContext context = getJspContext();
JspFragment worker;
switch (PersistentPropertyType.forPersistentProperty(persistentProperty)) {
case ASSOC_MULTI:
worker = n2manyEditControl;
break;
case ASSOC:
worker = n2oneEditControl;
break;
case EMBEDDED:
worker = simpleEditControl;
break;
case MAP:
worker = mapEditControl;
break;
case BOOL:
worker = booleanEditControl;
break;
case DATE:
worker = dateEditControl;
break;
case TIME:
worker = timeEditControl;
break;
case DATE_TIME:
worker = dateTimeEditControl;
break;
case NUMBER_INTEGER:
worker = numberEditControl;
break;
case NUMBER_FLOAT:
worker = numberEditControl;
break;
case STRING:
worker = simpleEditControl;
break;
case FILE:
worker = fileEditControl;
break;
default:
worker = simpleEditControl;
break;
}
try {
worker.invoke(null);
} finally {
context.removeAttribute(DISABLED);
}
}