src/aria/widgets/form/Select.js
function (includeController) {
            var hasChanged = null;
            if (this._skinObj.simpleHTML) {
                hasChanged = this.setProperty("value", this.getSelectField().value);
            } else if (includeController) {
                var controller = this.controller;
                var dataModel = controller.getDataModel();
                hasChanged = this.setProperty("value", dataModel.value);
            }

            // PTR05634154: setProperty can dispose the widget
            // (that's why we are checking this._cfg)
            if (this._cfg) {
                if (hasChanged != null) {
                    this.changeProperty("error", false);
                    if (!(this._cfg.formatError && this._cfg.formatErrorMessages.length)
                            || (this._cfg.error && this._cfg.errorMessages.length)) {
                        this._validationPopupHide();
                    }
                    if (this._cfg.onchange) {
                        this.evalCallback(this._cfg.onchange);
                    }
                }
            }
        }
function (includeController) {
            var hasChanged = null;
            if (this._skinObj.simpleHTML) {
                hasChanged = this.setProperty("value", this.getSelectField().value);
            } else if (includeController) {
                var controller = this.controller;
                var dataModel = controller.getDataModel();
                hasChanged = this.setProperty("value", dataModel.value);
            }

            // PTR05634154: setProperty can dispose the widget
            // (that's why we are checking this._cfg)
            if (this._cfg) {
                if (hasChanged != null) {
                    this.changeProperty("error", false);
                    if (!(this._cfg.formatError && this._cfg.formatErrorMessages.length)
                            || (this._cfg.error && this._cfg.errorMessages.length)) {
                        this._validationPopupHide();
                    }
                    if (this._cfg.onchange) {
                        this.evalCallback(this._cfg.onchange);
                    }
                }
            }
        }
function ( includeController ) { var hasChanged = null ; if ( this . _skinObj . simpleHTML ) { hasChanged = this . setProperty ( "value" , this . getSelectField ( ) . value ) ; } else if ( includeController ) { var controller = this . controller ; var dataModel = controller . getDataModel ( ) ; hasChanged = this . setProperty ( "value" , dataModel . value ) ; } // PTR05634154: setProperty can dispose the widget // (that's why we are checking this._cfg) if ( this . _cfg ) { if ( hasChanged != null ) { this . changeProperty ( "error" , false ) ; if ( ! ( this . _cfg . formatError && this . _cfg . formatErrorMessages . length ) || ( this . _cfg . error && this . _cfg . errorMessages . length ) ) { this . _validationPopupHide ( ) ; } if ( this . _cfg . onchange ) { this . evalCallback ( this . _cfg . onchange ) ; } } } }
Copies the value from the widget to the data model.
@param {Boolean} includeController whether to copy the value from the controller to the data model.
@protected
Copies the value from the widget to the data model .