added the hidden list field type

This commit is contained in:
JT Smith 2005-07-26 21:54:47 +00:00
parent 6ebf9c9ff3
commit c15cfa954f
6 changed files with 190 additions and 196 deletions

View file

@ -16,6 +16,7 @@ package WebGUI::Form::selectList;
use strict;
use base 'WebGUI::Form::Control';
use WebGUI::Form::hiddenList;
use WebGUI::International;
use WebGUI::Session;
@ -154,7 +155,23 @@ sub toHtml {
return $output;
}
#-------------------------------------------------------------------
=head2 toHtmlAsHidden ( )
Creates a series of hidden fields representing the data in the list.
=cut
sub toHtmlAsHidden {
my $self = shift;
return WebGUI::Form::hiddenList->new(
value=>$self->{value},
defaultValue=>$self->{defaultValue},
name=>$self->{name},
options=>$self->{options}
)->toHtmlAsHidden;
}
1;