This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply 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: 56179
    
  13

"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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: h:datatable / f:selectitems
 
Similar Threads
data table + selectOneMenu
Design problem with dynamically added row in datatable
Row Actions on DataTable
How to retreive (or Hold) these values from JSF page
getWrappedData does not return right value