summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TForm.php
diff options
context:
space:
mode:
authorxue <>2005-12-06 15:47:03 +0000
committerxue <>2005-12-06 15:47:03 +0000
commit10ae6ed6ee263644d3d7780153520af76215d178 (patch)
tree8b0ac4506bd572a94f6e4bd064c553ba368685de /framework/Web/UI/TForm.php
parent1e809a0a05e40786fafdb2002c7ceda8573b3f8e (diff)
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r--framework/Web/UI/TForm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php
index 4c619299..72eb2e10 100644
--- a/framework/Web/UI/TForm.php
+++ b/framework/Web/UI/TForm.php
@@ -11,7 +11,7 @@ class TForm extends TControl
protected function addAttributesToRender($writer)
{
$attributes=$this->getAttributes();
- $writer->addAttribute('name',$this->getName());
+// $writer->addAttribute('name',$this->getName());
$writer->addAttribute('method',$this->getMethod());
$writer->addAttribute('action',$this->getApplication()->getRequest()->getRequestURI());
$attributes->remove('name');
@@ -41,7 +41,7 @@ class TForm extends TControl
else
throw new Exception('Only IButtonControl can be default button.');
}
- $writer->addAttribute('id',$this->getUniqueID());
+ $writer->addAttribute('id',$this->getClientID());
foreach($attributes as $name=>$value)
$writer->addAttribute($name,$value);
}