<?php
class CollectionChooser extends TActivePanel implements INamingContainer {
	
	public function onInit($param) {
		parent::onInit($param);
		$changeButton = Prado::createComponent('TActiveLinkButton');
		$changeButton->Id="ChangeButton";
		$changeButton->Text = 'foo';
		$changeButton->OnCallBack = array($this,'renderCallback');
		$this->Controls->Add($changeButton);
	}

	
	public function renderCallback($sender,$param) {
		$this->Controls->Add('bar!');
		$this->renderControl($param->getNewWriter());
	}
	 
}
?>