Two Laptop Bag
The moose likes JSF and the fly likes Selecting item in h:SelectOneMenu dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Selecting item in h:SelectOneMenu dynamically" Watch "Selecting item in h:SelectOneMenu dynamically" New topic

Selecting item in h:SelectOneMenu dynamically

Srinivasan Purushothaman

Joined: Oct 29, 2008
Posts: 3

I have a Employee page, where all Employee details are displayed(with EDIT button).When Edit button is clicked, the particular Employee detail is displayed.

My problem is in h:selectOneMenu appropriate Employee name is not displayed dynamically(the Employee I selected to edit).
Mustafa Garhi
Ranch Hand

Joined: Nov 05, 2008
Posts: 111
Where are you fetching the values from ?
Are they hard-coded or fetched from a data provider ?
Paste the code that fetches these values here if you are still stuck.

I agree. Here's the link:
subject: Selecting item in h:SelectOneMenu dynamically
It's not a secret anymore!