summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
authorwei <>2006-12-10 23:55:49 +0000
committerwei <>2006-12-10 23:55:49 +0000
commit840854be7886236d46d3408de5a084983373b4c7 (patch)
tree8a8c22463bc3ac7f556633e790818d724bc52ed0 /tests/FunctionalTests/tickets/protected/pages
parent3c03a42d1edb0ec26110ace00f42e156cabff67b (diff)
Fixed #470
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket470.page27
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket470.php24
2 files changed, 51 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket470.page b/tests/FunctionalTests/tickets/protected/pages/Ticket470.page
new file mode 100644
index 00000000..c0ad23e6
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket470.page
@@ -0,0 +1,27 @@
+<com:TContent ID="Content">
+ <com:TActivePanel ID="activePanelTest" >
+ <!-- RELOAD -->
+ nbReload :
+ <com:TLabel ID="counter" Text="0" />
+ <com:TActiveLinkButton ID="reloadButton" OnCallback="Reload" > Reload </com:TActiveLinkButton>
+ <br/>
+
+ <!-- TEST -->
+ <com:TTextBox ID="TextBox" />
+ <com:TActiveLinkButton ID="button1" OnCallback="Valid" ValidationGroup="v1" > Valid </com:TActiveLinkButton>
+ <com:TRequiredFieldValidator
+ ID="validator1"
+ ValidationGroup="v1"
+ ControlToValidate="TextBox"
+ Text="ERROR, input 'TextBox' is empty" />
+ <!-- RESULTS -->
+ <div style="border:1px solid red">
+ <com:TActiveLabel ID="Results" />
+ </div>
+ </com:TActivePanel>
+
+
+ BUG :
+ click on 'Reload' with no text in the TextBox at anytime, and then, clicking on 'Valid' won't work...
+
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket470.php b/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
new file mode 100644
index 00000000..45741176
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket470.php
@@ -0,0 +1,24 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket470 extends TPage
+{
+ /**
+ * Increase the reload counter and render the activepanel content
+ */
+ public function Reload($sender, $param){
+ $this->Results->Text = "";
+ $this->counter->Text = $this->counter->Text +1;
+ $this->activePanelTest->renderControl($param->getNewWriter());
+ }
+
+ /**
+ *function to call when the form is valid (and the linkbutton fired his callback event)
+ */
+ public function Valid($sender, $param){
+ $this->Results->Text = "OK!!!";
+ }
+}
+
+?> \ No newline at end of file