Resolution: Won't Fix
Affects Version/s: 2.0.3
Fix Version/s: unscheduled
Operating System: All
The f:selectItems has an undocumented feature. It supports a Map<K, V> as
well. This is very handy. I'd intuitively expect it to use the map keys as
option values because they are supposed to be unique. Map values are then to be
used as option labels. However, the f:selectItems uses it the other way round:
map keys are option labels and map values (which aren't necessarily unique) are
used as option values.
Can this be done the other way round (map keys becomes option values and map
values become option labels) and be more explicitly documented? I can't seem to
find any pointers about this in f:selectItems tlddoc nor the JSF 2.0 specification.