This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Need Help:How to port HashMap<String-ColmnName, ArayList-ClumnData> to Datatable for multiple colmns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Need Help:How to port HashMap<String-ColmnName, ArayList-ClumnData> to Datatable for multiple colmns" Watch "Need Help:How to port HashMap<String-ColmnName, ArayList-ClumnData> to Datatable for multiple colmns" New topic
Author

Need Help:How to port HashMap<String-ColmnName, ArayList-ClumnData> to Datatable for multiple colmns

Pupun Moh
Greenhorn

Joined: Apr 14, 2009
Posts: 14
Hi Folks,

I have a requirement in which I have to create a JSF Datatable which will fetch data from a HashMap<String, ArrayList> where the Key corresponds to the column name and the value will be an ArrayList of data for the column.

As of now I have two columns EmpName and EmpNo.

Here is the POJO/Bean Class:

Here is the backing bean:



Now how do I go ahead and construct the dataTable so that it picks up the Key as column name and Arralist as the data in the column.

Please provide your suggestions and code snapshots.

Help is appreciated.

Regards,
Pupun
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need Help:How to port HashMap<String-ColmnName, ArayList-ClumnData> to Datatable for multiple colmns
 
Similar Threads
ClassCastException
Problem with ContainsKey(obj key) in HashMap
Bean setters not invoked when no data entered in form fields
EL & Bean Collections
Strange Behavior of Hibernate - NOT RESPONDING