From f884ea21ea8f0c6ced02565bd647a5692f82aea4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 25 Jan 2006 04:26:27 +0000 Subject: Added validation demo for TListBox. Fixed a few autopostback with causesvalidation problems. --- framework/Web/UI/WebControls/TCheckBoxList.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'framework/Web/UI/WebControls/TCheckBoxList.php') diff --git a/framework/Web/UI/WebControls/TCheckBoxList.php b/framework/Web/UI/WebControls/TCheckBoxList.php index 168c7ef0..34ff005f 100644 --- a/framework/Web/UI/WebControls/TCheckBoxList.php +++ b/framework/Web/UI/WebControls/TCheckBoxList.php @@ -328,13 +328,8 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingCont */ 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); } -- cgit v1.2.3