Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Eupload example
I tried to use Eupload addon in order to add an icon and a style to my upload button as shown in screenshots but it didn't seem to work.
The button remains as in the normal upload class.
Could someone provide the code of an example using such component in the correct way ?
Tks.
Tullio
My code
EUpload upload = new EUpload(null, this);
upload.setImmediate(true);
upload.setButtonIcon(FontAwesome.UPLOAD);
upload.setButtonStyleName("BUTTON_BORDERLESS");
upload.setButtonCaption("Upload Now");
upload.addSucceededListener(this);
upload.addFailedListener(this);
upload.addStartedListener(this);
upload.addFinishedListener(this);
hl.addComponent(upload);
StringField sf = new StringField();
sf.setCaption("testo");
sf.setEnabled(false);
hl.addComponent(sf);
hl.setExpandRatio(sf, 1f);