File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "h:datatable / f:selectitems" Watch "h:datatable / f:selectitems" New topic
Author

h:datatable / f:selectitems

thc thc
Greenhorn

Joined: Jan 21, 2007
Posts: 1
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

Joined: Jan 10, 2002
Posts: 61761
    
  67

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: h:datatable / f:selectitems