On Sun, 2009-03-15 at 01:37 +0200, Cagatay Civici wrote: > I remember adding this feature in 2006 :) > > If you have a map you actually don't need t:selectItems much. > f:selectItems would suffice where labels are the keys and values are > the map values.
How would you do that? The f:selectItems docs is clear that it expects an array or list of SelectItem objects. So there appears no way to generate SelectItems automatically. Do you mean that the backing bean would provide a special hand-written method to create a SelectItem element for each (key,value) in the map? That certainly works, but is not quite as nice as having t:selectItems do that for you. Regards, Simon

