sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
92 stars 58 forks source link

Disabled lazy MultiSelect does not show its values #352

Open reckart opened 1 year ago

reckart commented 1 year ago

Actual: When a com.googlecode.wicket.kendo.ui.form.multiselect.lazy.MultiSelect<T> gets disabled, it shows just an empty box.

Expected: When a MultiSelect gets disabled, it continues displaying the values, but they are no longer editable.

It seems that the transport is not initialized when the MultiSelect is disabled, so it wouldn't be able to get its values:

com.googlecode.wicket.kendo.ui.form.multiselect.lazy.MultiSelectBehavior.onConfigure(Component):

        if (this.isEnabled(component))
        {
            this.dataSource.set("serverFiltering", true);
            this.dataSource.setTransportReadUrl(this.getDataSourceUrl());
        }