This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes h:datatable / f:selectitems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "h:datatable / f:selectitems" Watch "h:datatable / f:selectitems" New topic

h:datatable / f:selectitems

thc thc

Joined: Jan 21, 2007
Posts: 1

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

Joined: Jan 10, 2002
Posts: 63208

"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.

JavaRanch Sheriff

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: h:datatable / f:selectitems
jQuery in Action, 3rd edition