[hunchentoot-devel] Re: Boolean Form Fields

Volkan YAZICI yazicivo at ttnet.net.tr
Fri Apr 27 23:01:30 UTC 2007


Edi Weitz <edi at agharta.de> writes:
> On Sat, 28 Apr 2007 01:21:58 +0300, Volkan YAZICI <yazicivo at ttnet.net.tr> wrote:
> I don't understand that question.  There's a hash table in the demo
> because there are several checkboxes grouped together.  If you only
> have one checkbox, you can of course just use 'BOOLEAN.

If I'd use 'BOOLEAN, how can I know when the value of a boolean is NIL
and when a boolean isn't supplied?

Consider (foo :parameter-type :boolean :request-type :get)
example. Both "foo.html" and "foo.html?foo=" returns NIL for FOO
variable. IMHO, for the formal case, there should be an exist-p
switch.


Regards.



More information about the Tbnl-devel mailing list