Forum Stats

  • 3,837,076 Users
  • 2,262,223 Discussions
  • 7,900,198 Comments

Discussions

how to by default select BMW 335 option in following when page is loaded

User_IJEGZ
User_IJEGZ Member Posts: 1 Green Ribbon

<h:form>

      1. Hardcoded with "f:selectItem" :

      <h:selectOneRadio value="#{user.favoriteCar1}" >

        <f:selectItem itemValue="335" itemLabel="BMW 335" />

        <f:selectItem itemValue="316" itemLabel="BMW 316" />

        <f:selectItem itemValue="M3 SMG" itemLabel="BMW M3 SMG" />

      </h:selectOneRadio>