From 3c24d31c69dffb6f65214b6d383d446ac122ff14 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 13 Dec 2006 10:07:37 +0000 Subject: Fixed #488. --- .../protected/pages/CustomValidatorByPass.php | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php (limited to 'tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php') diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php b/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php new file mode 100644 index 00000000..e88f10de --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.php @@ -0,0 +1,37 @@ +validator2->getActiveControl()->getClientSide(); + + $Client->setOnLoading('$(\'loginLoader\').show();'); + $Client->setOnComplete('$(\'loginLoader\').hide();'); + + //$Client->setOnValidationError('alert(\'Authentication Failed\');'); + $Client->setOnValidationSuccess('new Effect.Fade(\'loginBox\')'); + + } + + public function validateUser($sender,$param) + { + $param->IsValid = $this->Password->Text=='test'; + } + + public function doLogin($sender,$param) + { + + /* This isnt even getting called */ + if($this->Page->IsValid) + { + // Re-Render the active panel + } + + } +} + +?> \ No newline at end of file -- cgit v1.2.3