| Author |
Populating data in h:selectOneMenu from Database
|
Ragavendran Srinivasan
Greenhorn
Joined: Feb 04, 2008
Posts: 2
|
|
Hi Friends, In my JSF program, I want to populate data from MS-Access database to <h:selectOneMenu> combobox. I created an ArrayList to return the data to combobox. But I am getting conversion error. Kindly help me on this issue. Please send me if you have any sample coding to acheive this one. Thanks in advance. Regards Ragavan
|
 |
A. Dusi
Ranch Hand
Joined: Sep 27, 2004
Posts: 114
|
|
|
Are they SelectItem objects in the ArrayList?
|
 |
Ragavendran Srinivasan
Greenhorn
Joined: Feb 04, 2008
Posts: 2
|
|
Ya I added the selectItems. But it still showing the error. Do you have any sample coding for that? If so kindly send me...... Thanks Ragavan
|
 |
A. Dusi
Ranch Hand
Joined: Sep 27, 2004
Posts: 114
|
|
Is the value you are mapping in the backing bean a String? The choice property in myBean must be a String. [ February 06, 2008: Message edited by: A. Dusi ]
|
 |
 |
|
|
subject: Populating data in h:selectOneMenu from Database
|
|
|