• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:datatable / f:selectitems

 
thc thc
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Hope some could teach my how to populate the values of h:datatable to f:selectitems (drop down list).

I have a method in my bean that returns an object DataModel<ListDataModel>. If the method returns an array of SelectItem, then I don't have a problem. But my issue is that I'm constrained with using what is return by the method, which is DataModel.

Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"thc thc",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic