I think you are complicated the things. why do you want to set an object as select box value/option ? *browser interpret that object as string*! and when a user select air or car and submit the form then create an appropriate object on server, if you need.
and as in your example, f:selectItems doesnt have itemLable and itemValue attribute, and instead it has value attribute which expect a collection/single of SelectItem.
additionally, f:selectItem has all the above three attribute but value attribute will take the precedence .
Joined: Nov 03, 2011
i resolved my issue, i just create base object TransportOption which has 4 fields like id, name, type, price and objects like Car, Airplane, Bus extends this object. f:selectItems populate List<TransportObtion> and now everything work very well .
Thanks all for your suggestions