src/aria/widgets/controllers/MultiAutoCompleteController.js
function (value) {
                var report = new aria.widgets.controllers.reports.DropDownControllerReport(), dataModel = this._dataModel;

                if (value == null) {
                    dataModel.text = (this._pendingRequestNb > 0 && dataModel.text) ? dataModel.text : "";
                    dataModel.value = null;
                    report.ok = true;
                    this.selectedSuggestions = [];
                } else if (typeUtil.isArray(value)) {
                    if (this._checkWithSuggestionBean(value, this._resourcesHandler.SUGGESTION_BEAN)) {
                        dataModel.text = "";
                        dataModel.value = null;
                        report.ok = true;
                        this.selectedSuggestions = value;
                    } else {
                        report.ok = false;
                        this.$logError("Value does not match definition for this multiautocomplete: "
                                + this._resourcesHandler.SUGGESTION_BEAN, [], value);
                    }
                } else {
                    report.ok = false;
                    this.$logError("Wrong multiautocomplete value: " + value, [], value);
                }

                report.clearSuggestions = true;
                report.suggestionsToAdd = report.value = this.selectedSuggestions;
                report.text = dataModel.text;
                return report;
            }
function (value) {
                var report = new aria.widgets.controllers.reports.DropDownControllerReport(), dataModel = this._dataModel;

                if (value == null) {
                    dataModel.text = (this._pendingRequestNb > 0 && dataModel.text) ? dataModel.text : "";
                    dataModel.value = null;
                    report.ok = true;
                    this.selectedSuggestions = [];
                } else if (typeUtil.isArray(value)) {
                    if (this._checkWithSuggestionBean(value, this._resourcesHandler.SUGGESTION_BEAN)) {
                        dataModel.text = "";
                        dataModel.value = null;
                        report.ok = true;
                        this.selectedSuggestions = value;
                    } else {
                        report.ok = false;
                        this.$logError("Value does not match definition for this multiautocomplete: "
                                + this._resourcesHandler.SUGGESTION_BEAN, [], value);
                    }
                } else {
                    report.ok = false;
                    this.$logError("Wrong multiautocomplete value: " + value, [], value);
                }

                report.clearSuggestions = true;
                report.suggestionsToAdd = report.value = this.selectedSuggestions;
                report.text = dataModel.text;
                return report;
            }
function ( value ) { var report = new aria . widgets . controllers . reports . DropDownControllerReport ( ) , dataModel = this . _dataModel ; if ( value == null ) { dataModel . text = ( this . _pendingRequestNb > 0 && dataModel . text ) ? dataModel . text : "" ; dataModel . value = null ; report . ok = true ; this . selectedSuggestions = [ ] ; } else if ( typeUtil . isArray ( value ) ) { if ( this . _checkWithSuggestionBean ( value , this . _resourcesHandler . SUGGESTION_BEAN ) ) { dataModel . text = "" ; dataModel . value = null ; report . ok = true ; this . selectedSuggestions = value ; } else { report . ok = false ; this . $logError ( "Value does not match definition for this multiautocomplete: " + this . _resourcesHandler . SUGGESTION_BEAN , [ ] , value ) ; } } else { report . ok = false ; this . $logError ( "Wrong multiautocomplete value: " + value , [ ] , value ) ; } report . clearSuggestions = true ; report . suggestionsToAdd = report . value = this . selectedSuggestions ; report . text = dataModel . text ; return report ; }
Checks a value coming from the data model. The MultiAutoComplete only accepts arrays or null values from
the data model.
@param {Array} value
@return {aria.widgets.controllers.reports.DropDownControllerReport}
@override
Checks a value coming from the data model . The MultiAutoComplete only accepts arrays or null values from the data model .