previous | start | next

## Answers

1. `h:selectOneRadio`, `h:selectOneMenu`, or `h:selectOneCheckbox`
2. You would need a bean with a property such as the following:

       public Map<String, Integer> getYearChoices()
       {
          Map<String, Integer> choices = new TreeMap<String, Integer>();
          choices.put("2003", 2003);
          choices.put("2004", 2004);
          . . .
          return choices;
       }

   Then supply a tag `<f:selectItems value="#{creditCard.yearChoices}"/>`.

previous | start | next