diff --git a/lib/WebGUI/Form/Button.pm b/lib/WebGUI/Form/Button.pm index 65733e95c..67032f711 100644 --- a/lib/WebGUI/Form/Button.pm +++ b/lib/WebGUI/Form/Button.pm @@ -89,7 +89,11 @@ Renders a button. sub toHtml { my $self = shift; my $value = $self->fixQuotes($self->{value}); - return '{extras}.' />'; + my $html = '{name}.'" ' if ($self->{name}); + $html .= 'id="'.$self->{id}.'" ' unless ($self->{id} eq "_formId"); + $html .= 'value="'.$value.'" '.$self->{extras}.' />'; + return $html; } 1; diff --git a/lib/WebGUI/Form/Hidden.pm b/lib/WebGUI/Form/Hidden.pm index 165f47567..eea7800af 100644 --- a/lib/WebGUI/Form/Hidden.pm +++ b/lib/WebGUI/Form/Hidden.pm @@ -94,13 +94,13 @@ sub toHtmlAsHidden { =head2 toHtmlWithWrapper ( ) -A synonym for toHtmlAsHidden. +Renders the form field to HTML as a table row. The row is not displayed because there is nothing to display, but it may not be left away because may not be a child of