I am a new Vaadin user with JSF background.Currently i am trying to implement a simple
combobox using vaadin.What i want to do is,using a List as the itemlist of the combobox,showing Example.description field in the combobox,and when one of the items selected getting the Example object/Example.id as value.(as we do in JSF using itemLabel=example.description,itemValue=example/example.id properties of f:selectItems)
I am a new Vaadin user with JSF background.Currently i am trying to implement
Share
this is Ville from the Vaadin team. You can do this in quite many ways but in general you toggle your ComboBox behavior with the setItemCaptionMode() method.
However, pretty close to what you are trying to do is accomplished with the following example:
Here the BeanItemContainer wraps your POJOs and uses reflection to access getters.
Cheers.