I’m trying to display a Hashmap in a DataTable, here’s what i’m trying to do : I’ll have a select menu of some products, and an input text for quantity, an “ajaxified” add button that adds the product and its quantity to the map, and a submit button that displays a summary dialog containing a DataTable with two columns : Product Name and Quantitiy.
my Hashmap is
Map<Product,Integer> myMap = new HashMap<Product,Integer>();
for the ajaxified button and all those first steps, they’re working for me, i have everything set and the map filled correctly all what’s left is showing the data.
Thanks in advance.
You create Class like this:
Add datatable value to getProducts() List
Otherwise, product as a map key then,
write primeface page like this way,