HtmlMultipleHiddenField hiddenEnrollments = new HtmlMultipleHiddenField();
hiddenEnrollments.bind(getInputContext().getMetaObject(), "curriculumModules"); // slot
// refered
// by
// name
hiddenEnrollments.setConverter(new DomainObjectKeyArrayConverter());
hiddenEnrollments.setController(enrollmentsController);
HtmlMultipleHiddenField hiddenDegreeModulesToEnrol = new HtmlMultipleHiddenField();
hiddenDegreeModulesToEnrol.bind(getInputContext().getMetaObject(), "degreeModulesToEnrol"); // slot
// refered