AnsweredAssumed Answered

how to crate field from activiti form in vaadin

Question asked by mghb2009 on Jul 14, 2014
Latest reply on Jul 21, 2014 by trademak
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?