I’m trying to show contents of my container in a combobox. This is how i bind my container and Combobox:
myCombobox.setContainerDataSource(myContainer);
My container is filled with beanitems. What i’m trying to achieve is to set visible column in that combobox and also set it’s header, just like you would do with table. How can i do that? I’ve tried:
didn’t work. I’ve been looking through your manuals and there was nowhere i could find example with select or combobox using containers. Any suggestions?
The selects works just the way the table does, so you seem to be doing it perfectly right. Are you sure that the property id in the container is the same myContainer.COLUMN_ORDER ?
What exactly does this mean? Are you extending BeanItemContainer, or have you written your own from scratch?
I ask this because it’s easy to misunderstand the container: for instance, if you’re adding the BeanItems to the container using something like container.addItem(beanItem), that’s the cause of the problem.