Hi friends
I am new for Vaddin, my expectation is how to create flle upload field component that returns the field object.
here i have created text area that return field, just same like i want to do for file upload…
[color=#7d7474]
public Field getPropertyField(FormProperty formProperty) {
TextArea textArea = new TextArea(getPropertyLabel(formProperty));
textArea.setRequired(formProperty.isRequired());
textArea.setEnabled(formProperty.isWritable());
textArea.setRows(10);
textArea.setColumns(50);[color=#7d7474]
[/color]
textArea.setRequiredError(getMessage(Messages.FORM_FIELD_REQUIRED, getPropertyLabel(formProperty)));
if (formProperty.getValue() != null) {
textArea.setValue(formProperty.getValue());
}
return textArea;
}
[/color]
please help me for this…