This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF Dropdown list 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 "JSF Dropdown list" Watch "JSF Dropdown list" New topic
Author

JSF Dropdown list

Piyum Fernando
Greenhorn

Joined: Apr 29, 2008
Posts: 1
How can we add items to Dropdownlist in jsf?
Dwijen Bhattacharjee
Greenhorn

Joined: Mar 31, 2008
Posts: 26
you can use ---

<h:selectOneMenu value="#{beanNAme.methodname}" >
<f:selectItem itemValue="value1" itemLabel="label1"/>
<f:selectItem itemValue="value1" itemLabel="label1"/>
</h:selectOneMenu>

OR

<h:selectManyMenu ... />
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSF Dropdown list