I have the book "Core JavaServer Faces" and in there it says that I can use a plain Map collection with selectItems in a selectOneMenu.
I'm able to get it to work on one app but not another...using the same
JSF implementation on the same app server...so naturally I'm completely confused...to say the least.
I'm using Sun's Glassfish V1 and the official JSF 1.2 reference implementation it comes with. I'm not interested in MyFaces or another alternative...I want to stick w/ the built-in faces impl.
Anyhow, I have an enterprise app that has a page w/ this in it:
In the backing-bean, the list is populated like so:
In another app I've done it *exactly* the same way...
...but I get an exception!!
What am I doing wrong? I'm completely stumped. Can I use a Map or not? If no, why did it work once and not twice in *identical* situations!?
Thanks!