wbstr / vaadin-multifileupload

12 stars 23 forks source link

IllegalStateException on setReadOnly #46

Closed kumm closed 7 years ago

kumm commented 7 years ago

Due to a change in vaadin8.

stacktrace: java.lang.IllegalStateException: This component does not support the read-only mode, since state is of type CustomComponentState and does not inherit AbstractFieldState at com.vaadin.ui.AbstractComponent.setReadOnly(AbstractComponent.java:1082) at com.wcs.wcslib.vaadin.widget.multifileupload.ui.MultiFileUpload.setReadOnly(MultiFileUpload.java:224)

kumm commented 7 years ago

https://vaadin.com/download/prerelease/8.0/8.0.0/8.0.0.beta1/release-notes.html#incompatible "Read-only is now a feature for field components and has been moved from AbstractComponent to HasValue"

Hedath commented 7 years ago

Fixed in 3.0.1.