Hi all.

I am trying to implement a ComboBox. I have noticed that is necessary to have a Collection or a Container. Well, I have a bean Collection named Verticals.

public class Vertical {
	private Integer idVertical = null;
	private String nmVertical = null;
	public Vertical() {}
    getters and setters

How can I to use this as the data to populate the ComboBox? IdVertical could be the item and nmVertical the item caption.

Please, help me.

Kind regards.

Vitor Eduardo

BeanItemContainer verticalBeans = new BeanItemContainer(Vertical.class, insert a collection of verticals here);
final ComboBox verticals = new ComboBox(“All Verticals”, verticalBeans);

Thank you. I forgot the BeanItemContainer. It works.