summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2006-01-24 05:13:51 +0000
committerxue <>2006-01-24 05:13:51 +0000
commit85a8e37118107312b971aba4065be4e850441866 (patch)
tree5b8a320a42dbca31718bf537a00bd0159a1fcdee /framework/Web
parent230067c5425f9e95e601d682a8b9bb523190856e (diff)
Added TRadioButton demo and FT.
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/WebControls/TCheckBox.php7
1 files changed, 4 insertions, 3 deletions
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();
}
/**