summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDropDownList.php
diff options
context:
space:
mode:
authorxue <>2006-01-25 04:26:27 +0000
committerxue <>2006-01-25 04:26:27 +0000
commitf884ea21ea8f0c6ced02565bd647a5692f82aea4 (patch)
tree71a1f7ac242e845be02c0c7c4af2fc353222d9ef /framework/Web/UI/WebControls/TDropDownList.php
parent7c46396e4ade67e61dad6259030a72a783f37515 (diff)
Added validation demo for TListBox. Fixed a few autopostback with causesvalidation problems.
Diffstat (limited to 'framework/Web/UI/WebControls/TDropDownList.php')
-rw-r--r--framework/Web/UI/WebControls/TDropDownList.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/framework/Web/UI/WebControls/TDropDownList.php b/framework/Web/UI/WebControls/TDropDownList.php
index 3c459057..a3c02c15 100644
--- a/framework/Web/UI/WebControls/TDropDownList.php
+++ b/framework/Web/UI/WebControls/TDropDownList.php
@@ -72,13 +72,8 @@ class TDropDownList extends TListControl implements IPostBackDataHandler
*/
public function raisePostDataChangedEvent()
{
- $page=$this->getPage();
- if($this->getAutoPostBack() && !$page->getPostBackEventTarget())
- {
- $page->setPostBackEventTarget($this);
- if($this->getCausesValidation())
- $page->validate($this->getValidationGroup());
- }
+ if($this->getAutoPostBack() && $this->getCausesValidation())
+ $this->getPage()->validate($this->getValidationGroup());
$this->onSelectedIndexChanged(null);
}