W3C home > Mailing lists > Public > www-forms@w3.org > July 2001

Re: <selectOne> and checkboxGroup ?

From: <AndrewWatt2001@aol.com>
Date: Thu, 12 Jul 2001 11:18:20 EDT
Message-ID: <123.189b542.287f19bc@aol.com>
To: www-forms@w3.org
CC: joern.turner@web.de
In a message dated 12/07/01 13:17:04 GMT Daylight Time, joern.turner@web.de 
writes:


> IMHO the same as with <selectMany> and radiogroup applies to <selectOne> 
> and checkboxGroup. Though it may be possible to display this in most 
> UI-toolkits, it is normally not assured by the toolkit that only one 
> entry may be selected by the user.
> 
> in my understanding radiobuttons are defined to allow only one selection 
> while checkboxes allow the selection of one (but not strictly one) or 
> many values. This is expressed by their different appearence and there 
> would be no reason to have both types without that distinction.
> 
Joern,

I think you are correct. As soon as I saw the title of your post I realised 
that I had overlooked that yesterday.

In many settings the checkbox goes along with the equivalent of <
selectOneOrMany> which, at least for the moment, XForms doesn't offer. If 
there is to be a <selectOne> element then I would agree with you that a 
checkboxGroup seems inappropriate.

I seriously wonder if there is a need in XForms for a <selectOneOrMany> 
element. The example which comes instantly to mind .... I couldn't think of 
anything more "profound" :) ... is a form for an online pizza shop, where the 
offer might be for one, two or three (say) toppings.

Or an online submarine sandwich shop where you could have as many 
contents/dressings as you are prepared to pay for.

I appreciate that similar functionality could be provided by a series of 
radio buttons ... oops I mean <selectOne> elements :) ... but the <
selectOneOrMany> functionality is present as a routine in HTML forms (via 
checkboxes), and it seems to me that XForms, as currently drafted, may 
inadvertently be removing that tried and tested functionality.

Andrew Watt
Received on Thursday, 12 July 2001 11:18:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:49 GMT