File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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: 63852

"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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: h:datatable / f:selectitems
jQuery in Action, 3rd edition