• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Populating data in h:selectOneMenu from Database

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are they SelectItem objects in the ArrayList?
 
Ragavendran Srinivasan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic