dWebSpec Dictionary
CONTEXT: descriptors->element->type-cat-selection




All Details Standard Only Platform Only
Structured Web info and helpTechnologies
 Home Page
 Product Page
 Download Page
 Feedback
Javascript Tree Menu

Results for:

 element.type-cat-selection 
Prev  Topic  Next

selection

The selection input elements provide means of choosing amongst predetermined list of items.

However, there are some special issues involving selection elements. The first of which has to do with the fact they involve multiple bindings, one for the selected items, and one or more for the options to be selected from.

The dWebSpec types involved in selections are radioGroup, checkboxGroup, select and radio type elements. These are shown in the table below.

Type

value

options

comment

checkbox

single

X

True/false entry

radio

single

single

Group member have same ID

radioGroup

single

collection

 

checkboxGroup

single/ collection

collection

 

select

single/ collection

collection

 

The first one, checkbox, is not a selections element, it as input elements that allows for true/false entries; it is included here because of the relationship with the checkboxGroup.

The radio input allow selection of one of multiple options, as such, standalone it is of no use. When included multiple times within a form, with each instance bound to different singular value, but all instances sharing an identifier, they in essence form a radio group.

The radioGroup would be bound to a collection of options, with which it would render the member radio buttons with a singular value identifier. In short the difference between the radio and radioGroup, is that the earlier allows fine grain binding of values to individual radio elements, whereas the values for radioGroup would come from a collection.

The checkboxGroup is similar to the radioGroup, in that it would be bound to a collection of options, with which it would render the member checkboxes with a single identifier. However, it could allow single or multiple selections; the latter would imply that selected values would be returned as collection. The select element has identical binding structure with the checkboxGroup.

 Seam  

JSF UISelectBoolean, UISelectMany, UISelectOne, UISelectItem and UISelectItems families

checkbox

h:selectBooleanCheckbox

checkboxGroup

h:selectManyCheckbox h:selectOneCheckbox

option

f:selectItem
options f:selectItems
radio  
radioGroup h:selectOneRadio/h:selectManyRadio
select h:selectOneMenu h:selectOneListbox h:selectManyMenu h:selectManyListbox
Prev Next