/** * @param integer the zero-based index of the current view in the view collection. -1 if no active view. * @throws TInvalidDataValueException if the view index is invalid */ public function setActiveViewIndex($value) { parent::setActiveViewIndex($value); if ($this->getActiveControl()->canUpdateClientSide()) { $this->getPage()->getAdapter()->registerControlToRender($this, $this->getResponse()->createHtmlWriter()); } }