previous | start | next

## JSF Components: Button Groups and Menus

- Require two properties:
  - the collection of possible choices
  - the actual choice
- The value attribute specifies the actual choice to be displayed
- The collection of possible choices is defined by a nested `f:selectItems` tag

      <h:selectOneRadio value="#{creditCard.expirationMonth}"
            layout="pageDirection">
         <f:selectItems value="#{creditCard.monthChoices}"/>
      </h:selectOneRadio>

- `monthChoices` must have a type that can describe a list of choices
  - For example, `Map`
  - The keys of the map are the labels
  - The corresponding map values are the label values

previous | start | next