I have a Hashtable in a managed bean, now I want to traverse this Hashtable and display it's keys and values in a JSF page using the dataTable component.
I was looking to do something like this:
<h:dataTable value="#{MyBean.myHashtable}" var="item">
<h:column value="#{item.key}" />
<h:column value="#{item.value}" />
</h:table>
However, when I run this page, it displays blanks instead of the keys and values of the Hashtable.
How can I get the dataTable (or even a panelGrid) to display the keys and values of the Hashtable on the JSF page ?
Any help or pointers will be appreciated!