File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Doubt in h:selectItems" Watch "Doubt in h:selectItems" New topic
Author

Doubt in h:selectItems

Hari Dhanakoti
Ranch Hand

Joined: Jan 07, 2008
Posts: 74
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}"/>


Regards,
Hari
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: http://aspose.com/file-tools
 
subject: Doubt in h:selectItems