Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

User_IJEGZJun 24 2022

<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>

Comments
Post Details
Added on Jun 24 2022
0 comments
185 views