hi
i need to create the field and add to form for render in vaadin …
for (FormProperty formProperty : formProperties) {
FormPropertyRenderer renderer = getRenderer(formProperty);
Field editorComponent = renderer.getPropertyField(formProperty);
if (editorComponent != null) {
// Get label for editor component.
form.addField(formProperty.getId(), editorComponent);
}
}
protected Map<Class<? extends FormType>, FormPropertyRenderer> propertyRenderers = new HashMap<Class<? extends FormType>, FormPropertyRenderer>();
protected FormPropertyRenderer getRenderer(FormProperty formProperty) {
Class<? extends FormType> clazz = formProperty.getType().getClass();
FormPropertyRenderer renderer = propertyRenderers.get(clazz);
return renderer;
}
how to fill Initialized propertyRenderers?
Thanks