file upload controll that return field value

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…

Not sure why you create a text area when you wish to upload a file…

To upload files look at the vaadin book

https://vaadin.com/book/vaadin7/-/page/components.upload.html

André