diff options
author | xue <> | 2006-04-22 12:51:57 +0000 |
---|---|---|
committer | xue <> | 2006-04-22 12:51:57 +0000 |
commit | b181cd60a8fff5a94179f66fa1165952ed170a95 (patch) | |
tree | 839849817048badd43cdbc68f6482c21a1a5ba06 /framework/Web/UI/WebControls/TRadioButton.php | |
parent | d29f65df2bc5ce4cf294f687e90a02229bc35356 (diff) |
Modified default value rendering for TCheckBox.
Diffstat (limited to 'framework/Web/UI/WebControls/TRadioButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TRadioButton.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index dc5320b6..9a523b55 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -101,6 +101,14 @@ class TRadioButton extends TCheckBox $this->setViewState('GroupName',$value,'');
}
+ protected function getValueAttribute()
+ {
+ if(($value=parent::getValueAttribute())==='')
+ return $this->getUniqueID();
+ else
+ return $value;
+ }
+
/**
* @return string the name used to fetch radiobutton post data
*/
|