public function renderEndTag($writer) { $cs = $this->getPage()->getClientScript(); $cs->registerPradoScript('autocomplete'); parent::renderEndTag($writer); $this->renderResultPanel($writer); }