From 85a8e37118107312b971aba4065be4e850441866 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 24 Jan 2006 05:13:51 +0000 Subject: Added TRadioButton demo and FT. --- framework/Web/UI/WebControls/TCheckBox.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index 98084009..77145d48 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -311,13 +311,14 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl */ protected function getValueAttribute() { - if(($value=$this->getAttribute('value'))===null) + $attributes=$this->getViewState('InputAttributes',null); + if($attributes && $attributes->contains('value')) { - $value=$this->getID(); + $value=$attributes->itemAt('value'); return $value===''?$this->getUniqueID():$value; } else - return $value; + return $this->getUniqueID(); } /** -- cgit v1.2.3