Control API for Radio Button Group (radioButtonGroup)

Places several radiobuttons in tabular form. Only one radiobutton can be on at any given time.

  • columnCount
    Defines the amount of columns in which the radiobuttons are devided.

    Example

    If the columnCount is set to 3 and you define 7 radiobuttons the result is

  • id
    Identification name of the radioButtonGroup.
  • selection
    Specifies the key of the radioButton that is on in the radioButtonGroup.
attribute req. values default case sens. JSP taglib classlib
columncount no Numeric 1 - columnCount="3" setColumnCount(3)
id yes String none yes id="Genderselect"  
selection no String none yes selection="rb_k1" setSelection("rb_k1")

 

Example
<hbj:radioButtonGroup
           id="Genderselect"
           columnCount="2"
           selection="rb_fem"

           <hbj:radioButton
                   id="RBGenderFemale"
                   text="female"
                   key="rb_fem"
                   tooltip="I am female"
                   disabled="false"
           />

           <hbj:radioButton
                   id="RBGenderMale"
                   text="male"
                   key="rb_male"
                   tooltip="I am male"
                   disabled="false"
           />
</hbj:radioButtonGroup>

Result