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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Bug - FormLayout & Upload / setEnabled do not work for Uploader
Hi,
if I embed a Upload-Widget in a FormLayout and call setEnabled(false). Every item gets disabled, but when I call setEnabled(true) again, all other items except the Upload-Widget gets enabled.
TextField txt= new TextField();
TextField txt1= new TextField();
FileUploadReceiver fur = new FileUploadReceiver(path, someSuccessCall);
upload = new Upload("Upload..", fur);
upload.setButtonCaption("Upload");
upload.addSucceededListener(fur);
CommandLayout = new FormLayout();
CommandLayout.addComponent(txt1);
CommandLayout.addComponent(txt);
CommandLayout.addComponent(upload);
// This is done in a button method
CommandLayout.setEnabled(false);
// In other button method
CommandLayout.setEnabled(true);
// if I call upload.setEnabled(true) it works
Best regards
Ben
Last updated on
You cannot reply to this thread.