This content has been marked as final.
Show 1 reply
-
1. Re: How to display hashmap object values in user interface??
healeyb Jun 27, 2012 6:17 AM (in response to smithadsouza)1 of 1 people found this helpfulI think that the richfaces data iteration components take the same types for the value attribute as h:datatable, which
are:
- A java object
- An array
- A List
- A java.sql.ResultSet
- A javax.faces.model.DataModel
In reality people almost always use lists and datamodels (for lazy loading). The easiest thing to do is to
convert your map values into a list like this:
List<String> list = new ArrayList<String>(hotelFeaturesMap.values());
An alternative solution is to write your own EL function, but the above is the easiest thing for you.
Regards,
Brendan.