Example #1
0
 public function generateInner()
 {
     if ($this->autoPostBack) {
         $this->addEvent('blur', "manager.doPostBack('{$this->getId()}');");
     }
     if ($this->getReadOnly()) {
         $this->setClass('mReadOnly');
         $this->addAttribute('readonly');
     }
     if ($this->getPlaceHolder()) {
         $this->addAttribute('placeholder', $this->getPlaceHolder());
     }
     if ($this->required) {
         $this->setValidator(new MRequiredValidator($this->id, "Informar o valor do campo"));
     }
     $this->generateValidator();
     $this->inner = $this->render();
     parent::generateInner();
 }