code: function(options) {
  
     	/**
     	 * Configuration object to set the options for this class and the parent classes. See constructor details for options added by this class.
     	 */
     	this.options = {};
     	
     	// Basic options
     	this.options.name = options.name;
     	this.options.value = options.value;
     	this.options.id = options.id || Dom.generateId();
     	this.options.label = options.label;
     	this.options.description = options.description;
     
        // Define default messages
  	   this.options.messages = {};
  	   this.options.messages.required = (options.messages && options.messages.required) ? options.messages.required : inputEx.messages.required;
  	   this.options.messages.invalid = (options.messages && options.messages.invalid) ? options.messages.invalid : inputEx.messages.invalid;
  	   //this.options.messages.valid = (options.messages && options.messages.valid) ? options.messages.valid : inputEx.messages.valid;
  	
  	   // Other options
  	   this.options.className = options.className ? options.className : 'inputEx-Field';
  	   this.options.required = lang.isUndefined(options.required) ? false : options.required;
  	   this.options.showMsg = lang.isUndefined(options.showMsg) ? false : options.showMsg;
  	}
docs: Set the default values of the options
  @param {Object} options Options object as passed to the constructor