Re: <selectOne> and checkboxGroup ?

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 UTC