Form/* now all use getOriginalValue and getDefaultValue. This resolves the Layout bug where all the check lists could not be unchecked. Tests were updated, but still need a major overhaul.

This commit is contained in:
Kaleb Murphy 2008-08-08 14:52:53 +00:00
parent 96b7047d22
commit 173c2a12cd
42 changed files with 173 additions and 76 deletions

View file

@ -184,7 +184,7 @@ Renders a time field.
sub toHtml {
my $self = shift;
my $value = $self->getDefaultValue;
my $value = $self->getOriginalValue;
my $i18n = WebGUI::International->new($self->session);
$self->session->style->setScript($self->session->url->extras('inputCheck.js'),{ type=>'text/javascript' });
$self->set("extras", $self->get('extras') . ' onkeyup="doInputCheck(document.getElementById(\''.$self->get("id").'\'),\'0123456789:\')"');
@ -206,7 +206,7 @@ Renders the field as a hidden field.
sub toHtmlAsHidden {
my $self = shift;
my $value = $self->getDefaultValue;
my $value = $self->getOriginalValue;
return WebGUI::Form::Hidden->new($self->session,
name=>$self->get("name"),
value=>$value