I have LinkedHashMap<String,List<SelectItem>> results = got the results from DB see here
I need to assign the above results to the lists available in UI using for loop.
for (Map.Entry<String, List<SelectItem>> entry : results.entrySet()) {
String key = entry.getKey();
List<SelectItem> values = entry.getValue();
System.out.println("Key = " + key);
System.out.println("Values = " + values + "n");
}
Assigning part example :
if(key.equalsIgnoreCase("getProjectManager")) {
tempselectedProjMgrList = entry.getValue();
}
Based on the key I am adding the values to a diff list like the one i said in the given link above.
The above sys out does not print the acutal values inside the list instead it prints like the one given below ..
Key = getProjectManager
Values = [javax.faces.model.SelectItem@fadb0a,javax.faces.model.SelectItem@1245c45]n
Key = getResourceOwnerSE
Values = [javax.faces.model.SelectItem@25f52c, javax.faces.model.SelectItem@323fc] <br/>
How to get the actual values from the above list.