[jsr-314-open-mirror] [jsr-314-open] f:selectItems value="#{myMap}" underspecified

Ed Burns edward.burns at oracle.com
Thu May 27 13:09:50 EDT 2010


>>>>> On Tue, 25 May 2010 14:59:18 +0200, Martin Marinschek <mmarinschek at apache.org> said:

MM> Hi Leo,
>>> I never understood why the labels should be the key here - it should
>>> really be the other way round, and the value should be the key. I
>>> thought that was sorted for 1.2 - it is not?
>>> 
>>> 
>> No, this was not solved because the documentation of f:selectItems does
>> not have the properties mentioned (var, itemValue, itemLabel....). In fact
>> it was f:selectItem the component that has them in jsf 1.2

MM> Well, so this is really two issues - first, it is not documented,
MM> second, I still think if we build the items from a map, it should go
MM> the other way round.

Doch, f:selectItems sure does have the documentation.

https://javaserverfaces.dev.java.net/nonav/docs/2.0/pdldocs/facelets/f/selectItems.html

MM> Can you open issues?

He did open
<https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=772>,
to which I just added this comment:

  Leonardo, we can either specify that the "var" attribute is
  unsupported for f:selectItems where value is a Map, or we can push
  this to 2.1.  I am constrained to these choice because to make
  "f:selectItems var points to map" work needs a behavior change.

By default I've moved it to 2.1.  Please comment if you want the "not
supported" option and have it in 2.0 Rev a.

Ed

-- 
| edburns at oracle.com | 
| homepage:          | http://ridingthecrest.com/



More information about the jsr-314-open-mirror mailing list