diff options
author | wei <> | 2007-03-30 12:34:53 +0000 |
---|---|---|
committer | wei <> | 2007-03-30 12:34:53 +0000 |
commit | f4f802efe3cccd68f3a6b40eb8312bfd8e24d643 (patch) | |
tree | e36be1798cf34e221a3897c98eceadf1195c4799 /tests/FunctionalTests/tickets/protected | |
parent | fbfbdcb233e94b7fed6f8ae209eb90d79aa33f7e (diff) |
Fixed #535
Diffstat (limited to 'tests/FunctionalTests/tickets/protected')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket535.page | 15 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket535.php | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket535.page b/tests/FunctionalTests/tickets/protected/pages/Ticket535.page new file mode 100644 index 00000000..4b9ba6fe --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket535.page @@ -0,0 +1,15 @@ +<com:TContent ID="Content">
+
+<h2><strong>Without</strong> GroupName it is OK</h2>
+ <com:TRadioButton ID="radio1" Text="Radio Button 1" /><br/>
+ <com:TRadioButton ID="radio2" Text="Radio Button 1" /><br/>
+ <com:TActiveButton id="button1" OnCallback="noGroup" Text="test without GroupName" />
+<br/><br/>
+<h2>But with the same...</h2>
+ <com:TRadioButton ID="bad_radio1" GroupName="bad" Text="Bad Radio Button 1" /><br/>
+ <com:TRadioButton ID="bad_radio2" GroupName="bad" Text="Bad Radio Button 1" /><br/>
+ <com:TActiveButton id="button2" OnCallback="group" Text="test with a GroupName" />
+
+<com:TActiveLabel ID="label1" Text="Label 1"/>
+
+</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket535.php b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php new file mode 100644 index 00000000..4f9b2f51 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php @@ -0,0 +1,16 @@ +<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket535 extends TPage
+{
+ public function noGroup($sender, $param)
+ {
+ $this->label1->Text = "radio1 checked:{".$this->radio1->getChecked()."} radio2 checked:{".$this->radio2->getChecked()."} ";
+ }
+
+ public function group($sender, $param)
+ {
+ $this->label1->Text = "bad_radio1 checked:{".$this->bad_radio1->getChecked()."} bad_radio2 checked:{".$this->bad_radio2->getChecked()."} ";
+ }
+}
+
+?>
\ No newline at end of file |