public function renderAttributes()
  {
    if (isset($this->attributes['hash_id']))
      $this->hash_id = $this->attributes['hash_id'];

    unset($this->attributes['hash_id']);

    parent :: renderAttributes();
  }
 public function renderAttributes()
 {
   unset($this->attributes['value']);
   parent :: renderAttributes();
 }
  public function getValue()
  {
    $form = $this->findParentByClass('form_component');

    $value = parent :: getValue();

    if(empty($value))
      $value = $this->getAttribute('default_value');

    if($form->isFirstTime())
    {
      $date = new Date($value);
      $locale = Limb :: toolkit()->getLocale();

      $value = $date->format($locale, $locale->getShortDateFormat());
    }

    return $value;
  }