Re: [html-formfu] checkbox strangeness

2008-09-21 Thread Geoffrey D. Bennett
On Wed, Sep 17, 2008 at 03:21:12PM +0100, Carl Franks wrote: [...] > Okay, the Checkbox element's value() now defaults to "1". > (and also the Radio element, which inherits from Checkbox) > > I think it's likely anyone's been using it without setting the > value(), so it shouldn't have any negativ

Re: [html-formfu] checkbox strangeness

2008-09-17 Thread Ronald J Kimball
Geoffrey D. Bennett wrote: On Mon, Sep 15, 2008 at 10:31:33AM -0400, Ronald J Kimball wrote: Geoffrey D. Bennett wrote: On Mon, Sep 15, 2008 at 09:31:57AM -0400, Ronald J Kimball wrote: HTML::FormFu handles this correctly. For a single form submission, maybe, but not for setting the "checked"

Re: [html-formfu] checkbox strangeness

2008-09-17 Thread Carl Franks
2008/9/13 Geoffrey D. Bennett <[EMAIL PROTECTED]>: > On Mon, Aug 25, 2008 at 09:35:18AM +0100, Carl Franks wrote: > [...] >> > All this seems a bit excessive for what I would have thought would be >> > a reasonably common case? >> > >> > I've now got: >> > >> > default_args: >> > elements: >> >

Re: [html-formfu] checkbox strangeness

2008-09-17 Thread Geoffrey D. Bennett
On Mon, Sep 15, 2008 at 10:31:33AM -0400, Ronald J Kimball wrote: > Geoffrey D. Bennett wrote: > >On Mon, Sep 15, 2008 at 09:31:57AM -0400, Ronald J Kimball wrote: > >>HTML::FormFu handles this correctly. > > > >For a single form submission, maybe, but not for setting the "checked" > >attribute cor

Re: [html-formfu] checkbox strangeness

2008-09-15 Thread Ronald J Kimball
Geoffrey D. Bennett wrote: On Mon, Sep 15, 2008 at 09:31:57AM -0400, Ronald J Kimball wrote: HTML::FormFu handles this correctly. For a single form submission, maybe, but not for setting the "checked" attribute correctly in displayed forms. I just tried the form you suggested above, and it on

Re: [html-formfu] checkbox strangeness

2008-09-15 Thread Geoffrey D. Bennett
Hi Ronald, On Mon, Sep 15, 2008 at 09:31:57AM -0400, Ronald J Kimball wrote: [...] > It is common to have a group of checkboxes that share the same name, > each with a different value. For example: > > > > > > > If the checkboxes for books and cooking are checked, then the HTTP > request

Re: [html-formfu] checkbox strangeness

2008-09-15 Thread Ronald J Kimball
Geoffrey D. Bennett wrote: On Mon, Aug 25, 2008 at 09:35:18AM +0100, Carl Franks wrote: The reason that's not a default, is that checkboxes aren't always a simple boolean [...] Can you explain this statement? The only non-boolean checkboxes I could think of would be greyed-out disabled ones (

Re: [html-formfu] checkbox strangeness

2008-09-13 Thread Geoffrey D. Bennett
On Mon, Aug 25, 2008 at 09:35:18AM +0100, Carl Franks wrote: [...] > > All this seems a bit excessive for what I would have thought would be > > a reasonably common case? > > > > I've now got: > > > > default_args: > > elements: > >Checkbox: > > value: 1 > > default_empty_value: 1 >

Re: [html-formfu] checkbox strangeness

2008-08-25 Thread Carl Franks
2008/8/24 Geoffrey D. Bennett <[EMAIL PROTECTED]>: > Hi there, > > I have a form like this: > > indicator: submit > elements: > - type: Text >name: name >label: Name > - type: Checkbox >name: active >label: Active > - type: Submit >name: submit >value: Submit > > which is