summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
authortof <>2008-03-13 15:37:41 +0000
committertof <>2008-03-13 15:37:41 +0000
commit8024b179ed3657b1e43e9684105a172a287700b9 (patch)
treede8a7df03a4f8bddc97a58e3781402d30e50b5fb /tests/FunctionalTests/tickets/protected/pages
parentbbd920258f436b5c1ff3c151f01f03089fbc24ad (diff)
Test case for #769
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket769.page18
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket769.php26
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket769.page b/tests/FunctionalTests/tickets/protected/pages/Ticket769.page
new file mode 100644
index 00000000..aca51817
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket769.page
@@ -0,0 +1,18 @@
+<com:TContent ID="Content">
+
+<com:TActivePanel ID="Main">
+<com:TPanel ID="A" Visible="true">
+ <label>T1</label>
+ <com:TTextBox ID="T1" />
+ <com:TActiveButton Text="T1" ValidationGroup="G1" OnClick="clicked" />
+ <com:TRequiredFieldValidator ControlToValidate="T1" Text="T1-error"
+ ValidationGroup="G1" />
+</com:TPanel>
+
+<com:TPanel ID="B" Visible="false">
+ This is B
+</com:TPanel>
+<com:TActiveButton Text="showB" OnCallback="showBcallback" />
+<com:TActiveButton Text="showA" OnCallback="showAcallback" />
+</com:TActivePanel>
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket769.php b/tests/FunctionalTests/tickets/protected/pages/Ticket769.php
new file mode 100644
index 00000000..e1a86f0d
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket769.php
@@ -0,0 +1,26 @@
+<?php
+
+Prado::Using ('System.Web.UI.ActiveControls.*');
+
+class Ticket769 extends TPage
+{
+ public function showAcallback( $sender, $param )
+ {
+ $this->A->Visible = true;
+ $this->B->Visible = false;
+ $this->Main->render( $param->NewWriter );
+ }
+
+ public function showBcallback( $sender, $param )
+ {
+ $this->A->Visible = false;
+ $this->B->Visible = true;
+ $this->Main->render( $param->NewWriter );
+ }
+
+ public function clicked( $sender, $param )
+ {
+ $sender->Text = $sender->Text.' clicked';
+ }
+}
+?> \ No newline at end of file