| 2045 | | |
| 2046 | | |
| | 2045 | /** |
| | 2046 | * Overrides Component.Input#setValue. For file uploads, there is no |
| | 2047 | * default property saving. A file upload can either be handled using |
| | 2048 | * a setter method or saved from outside the save method. |
| | 2049 | * @param {Object} destObj (optional) object whose values will be changed. |
| | 2050 | * @param {Object} value The value to set the property to |
| | 2051 | * @returns True in case the update was successful, false otherwise. |
| | 2052 | * @see jala.Form#setter |
| | 2053 | */ |
| | 2054 | jala.Form.Component.File.prototype.setValue = function(destObj, value) { |
| | 2055 | if (this.setter) { |
| | 2056 | this.setter.call(destObj, this.name, value); |
| | 2057 | } |
| | 2058 | return; |
| | 2059 | }; |