function get_value()
 {
     $value = parent::get_value();
     $form =& $this->find_parent_by_class('form_component');
     if ($form->is_first_time()) {
     }
     return $value;
 }
 function render_attributes()
 {
     if (isset($this->attributes['hash_id'])) {
         $this->hash_id = $this->attributes['hash_id'];
     }
     unset($this->attributes['hash_id']);
     parent::render_attributes();
 }
 function get_value()
 {
     $form =& $this->find_parent_by_class('form_component');
     $value = parent::get_value();
     if (empty($value)) {
         $value = $this->get_attribute('default_value');
     }
     if ($form->is_first_time()) {
         $locale =& locale::instance();
         $date =& new date($value);
         $value = $date->format($locale->get_short_date_format());
     }
     return $value;
 }
 function render_attributes()
 {
     unset($this->attributes['value']);
     parent::render_attributes();
 }