summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation
diff options
context:
space:
mode:
authorwei <>2006-01-13 12:57:54 +0000
committerwei <>2006-01-13 12:57:54 +0000
commit52ae5aef521fa7d800e09206342eb9ac17043cd8 (patch)
tree51c3791769ad032232f6f2d3937404b0864f5012 /tests/FunctionalTests/protected/pages/Validation
parent8e16e1f6e9b2b79696d03375e2a60fbae6761a64 (diff)
Diffstat (limited to 'tests/FunctionalTests/protected/pages/Validation')
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page7
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php5
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
index 56ef07bd..e6b67c8d 100644
--- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
+++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
@@ -1,13 +1,16 @@
+<%@ Title="Basic TRequiredFieldValidator" %>
+<com:TContent ID="Content">
<com:TForm>
<h1>Basic TRequiredFieldValidator Test1</h1>
<com:TTextBox ID="text1" />
<com:TRequiredFieldValidator
ID="validator1"
FocusOnError="true"
- FocusElementID="text2"
+ FocusElementID="<%# $this->Page->text2->ClientID %>"
ControlToValidate="text1"
ErrorMessage="*" />
<com:TButton ID="button1" Text="Click" />
<com:TTextBox ID="text2" />
<com:TJavascriptLogger />
-</com:TForm> \ No newline at end of file
+</com:TForm>
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
index 995b3df0..ff24b93a 100644
--- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
+++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
@@ -2,9 +2,10 @@
class RequiredFieldValidator extends TPage
{
- function onLoad($param)
+ protected function onLoad($param)
{
- Prado::log("Hello", TLogger::WARNING);
+ if(!$this->IsPostBack)
+ $this->dataBind();
}
}