form.formListeners = new ArrayList<FormBasicController>();
if(listener instanceof FormBasicController){
form.formListeners.add((FormBasicController)listener);
}
Translator translator = formLayout.getTranslator();
if (translator == null) { throw new AssertException("please provide a translator in the FormItemContainer <" + formLayout.getName()
+ ">"); }
// renders header + <formLayout> + footer of html form
form.formWrapperComponent = new FormWrapperContainer(name, translator, form);
form.formWrapperComponent.addListener(listener);
form.formWrapperComponent.put(formLayout.getComponent().getComponentName(), formLayout.getComponent());