public function generateInner() { $field = new MTextField($this->name, $this->value, '', $this->size, $this->hint, $this->validator); $field->setAttributes($this->attributes); if ($this->autocomplete) { $field->addEvent('change', "{$this->lookupName}.start();"); } $field->setWidth($this->style->get('width')); $field->validator = $this->validator; $field->form = $this->form; $field->showLabel = $this->showLabel; if ($this->readonly) { $field->setClass('mReadOnly'); $field->addAttribute('readonly'); } parent::generateInner(); $lookupField = $this->getInner(); //$container = new MHContainer('', array($field, ( $this->readonly ? '' : $lookupField))); //$container->setShowLabel(false); $field = new MDiv('', $field, 'textfield'); $lookup = $this->readonly ? '' : $lookupField; $container = new MDiv('', array($field, $lookup), 'mLookupTextField mContainer'); //$container->setClass('mLookupField'); $this->inner = $container; }