Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in h:selectItems

 
Hari Dhanakoti
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic may help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic