Meaningless Drivel is fun!
The moose likes JSF and the fly likes Doubt in h:selectItems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Doubt in h:selectItems" Watch "Doubt in h:selectItems" New topic

Doubt in h:selectItems

Hari Dhanakoti
Ranch Hand

Joined: Jan 07, 2008
Posts: 74

I am a new bie in JSF and i am now trying to set values to a combobox as in HTML.

<select name="abcd" id="abcd">
<option value="123">One</option>
<option value="123">One</option>
<option value="123">One</option>

How to achieve in getting the different value in option display and the different value in the option value.

<h:selectItems value = "#{object.Value}"/>

Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
This topic may help you.

“Everything should be as simple as it is, but not simpler.” Albert Einstein
I agree. Here's the link:
subject: Doubt in h:selectItems
jQuery in Action, 3rd edition