SelectItem
did'nt override the toString()
method herited from the Object
class which is :
getClass().getName() + '@' + Integer.toHexString(hashCode())
That's why you get such an output.
So you'll have to loop through all the values and call getValue()
. That will call the toString()
method on the value object hold by the SelectItem
.
System.out.println("Key = " + key);
System.out.println("Values = ");
for(SelectItem st : values){
System.out.print(st.getValue()+" ");
}
System.out.println();
EDIT:
If you want directly to get the appropriated list with the key associated, just do
tempselectedResOwnSeList = results.get("getProjectManager");