[Html-widget] Select fields and '0' value - again

Carl Franks fireartist at gmail.com
Fri Sep 15 11:16:54 CEST 2006


On 07/09/06, Tobias Kremer <t at funkreich.de> wrote:
> Furthermore, I'm wondering if there's a sane way to stop HTML::Widget
> from reverting to the default values (set with "->value") for fields that
> have an "All" constraint defined but were submitted empty?

I think this only happens is the field is missing.
If it's submitted empty (foo => ''), then you get an error.

What do you want to happen? If the field's missing, do you want it to
be an error too?
In that case, I think this change would quite likely break current applications.
I've not really got any good idea on how to handle that.

Carl



More information about the Html-widget mailing list