summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket587.page15
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket587.php12
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket587.page b/tests/FunctionalTests/tickets/protected/pages/Ticket587.page
new file mode 100644
index 00000000..a28bab6a
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket587.page
@@ -0,0 +1,15 @@
+<com:TContent ID="Content">
+
+<com:TTimeTriggeredCallback ID="Trigger"
+ ActiveControl.CausesValidation="false"
+ OnCallback="Page.onTriggerCallback" Interval="2" />
+Count: <com:TActiveLabel ID="count" Text="0" />
+<com:TTextBox ID="testBox" />
+
+<com:TRequiredFieldValidator
+ ControlToValidate="testBox"
+ Display="Dynamic"
+ ErrorMessage="Please insert a Text." />
+
+<com:TCheckBox Text="Test2" Attributes.OnClick="console.log(this.checked)" AutoPostBack="True" />
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket587.php b/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
new file mode 100644
index 00000000..a84a876c
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket587.php
@@ -0,0 +1,12 @@
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket587 extends TPage
+{
+ public function onTriggerCallback( $sender, $param )
+ {
+ $count = (int) $this->count->getText();
+ $this->count->setText( ++$count );
+ }
+}
+
+?> \ No newline at end of file