File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Dropdown list" Watch "JSF Dropdown list" New topic

JSF Dropdown list

Piyum Fernando

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

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:selectManyMenu ... />
subject: JSF Dropdown list
It's not a secret anymore!