protected function getValueAttribute()
{
if (($value = $this->getValue()) !== '') {
return $value;
} else {
$attributes = $this->getViewState('InputAttributes', null);
if ($attributes && $attributes->contains('value')) {
return $attributes->itemAt('value');
} else {
if ($this->hasAttribute('value')) {
return $this->getAttribute('value');
} else {
return '';
}
}
}
}