[Html-widget] Select and '0' value

Ted Carnahan ted at tedcarnahan.com
Sat Sep 2 06:42:46 CEST 2006


I was under the impression that this was fixed in more recent versions
of HTML::Widget.  Are you using 1.08?

 - Ted Carnahan

On Fri, 2006-09-01 at 16:32 +0200, Tobias Kremer wrote:
> I have defined a select element like this:
> 
> $w->element( 'Select', 'status' )->options( '0' => 'Disabled', '1' =>
> 'Activated', '2' => 'Pending' );
> 
> Unfortunately, when submitting the form, option '0' => 'Disabled' is
> considered as an error (I suppose because its value is '0') and the
> form is tagged as invalid, although '0' is a perfectly valid value.
> I have no explicit constraints on the form.
> 
> Any ideas on how to fix this?
> 
> Thanks!
> 
> -- Toby
> 
> _______________________________________________
> Html-widget mailing list
> Html-widget at lists.rawmode.org
> http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget




More information about the Html-widget mailing list