From b687748278d29510bb28875627c98b5da0a96cc5 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 11 Aug 2006 05:05:32 +0000 Subject: Fixed callback replace content. --- .../protected/pages/CustomTemplateControlTest.php | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php (limited to 'tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php') diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php new file mode 100644 index 00000000..753de25c --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/CustomTemplateControlTest.php @@ -0,0 +1,27 @@ +label1->Text = "Button 1 was clicked "; + $this->label1->Text .= $this->foo->Text; + + $x=Prado::createComponent('Application.pages.CustomTemplateComponent'); + + $this->placeholder->getControls()->add($x); + $this->placeholder->dataBind(); + } + + function button2_callback($sender, $param) + { + $this->placeholder->render($param->output); + + $this->label1->Text .= " using callback!"; + $this->label1->Text .= "... and this is the textbox text: ". $this->foo->Text; + } + +} + +?> \ No newline at end of file -- cgit v1.2.3