* @return forward
* @throws Exception
*/
public ActionForward commit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception {
AttributeDefinitionForm df = (AttributeDefinitionForm) form;
df.applyToDefinition();
if (df.getEditing()) {
ProfilesFactory.getInstance().updateAttributeDefinition(df.getDefinition());
df.getDefinition().getPropertyClass().registerPropertyDefinition(df.getDefinition());
} else {
ProfilesFactory.getInstance().createAttributeDefinition(df.getDefinition());
df.getDefinition().getPropertyClass().registerPropertyDefinition(df.getDefinition());
}
return cleanUpAndReturnToReferer(mapping, form, request, response);
}