getting object in h:selectOneMenu and f:selectItems
I've got a vector, which contains objects of type MyClass with an attribute name. I put this vector (testVector) in a selectetItems-Tag and configure this Tag to show the attribute name of each object in the selectOneMenu. Now I would like to get an object and no String, when the user select an item in a selectOneMenu. But I get a String like [de.test.beans.MyClass@629814, de.test.beans.MyClass@ee58a1, de.test.beans.MyClass@1fce0aa, ...]!?
My code is the following:
Is it a bug of JSF or could you get only Strings on a selectOneMenu?
For your information: I use Mojarra 2.0.2, RichFaces 3.3.3 and Spring Web Flow 2.1.