aspose file tools*
The moose likes JSF and the fly likes data table + selectOneMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "data table + selectOneMenu" Watch "data table + selectOneMenu" New topic

data table + selectOneMenu

Brunda Gundamaraj

Joined: Aug 13, 2008
Posts: 11

I have a data table within which is a selectoneMenu.
On Submit i capture all the values and update in the DB.
I am able to get all the values on submit.

Now my problem is when data is retrieved from the database the value of the dropdown is not dispalying the selected value instead it displays the first value.

Code Sample

The getter method and setter methods are called accordingly but still the selected value is not set in the drop down.

Can anyone please tell me where have i done a mistake ?

I agree. Here's the link:
subject: data table + selectOneMenu
Similar Threads
Navigation not working due due SelectOneMenu object
Value Change Listener
Issue With selectOneMenu ValueChangeListener Not Firing
JSF ValueChange problems and Default method where the form submits to
JSF Page Navigation on SelectOneMenu change