Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Setting a default value on a ComboBox

Samuel Guzmán
1 decade ago May 04, 2010 3:36pm
Artur Signell
1 decade ago May 04, 2010 4:07pm

The value is the item id, not the item. So

myCombo.setValue(itemIds.iterator().next())

should work

Samuel Guzmán
1 decade ago May 04, 2010 10:52pm
Samuel Guzmán
1 decade ago May 20, 2010 10:31pm
Risto Yrjänä
1 decade ago May 21, 2010 11:04am
Tullio Bettinazzi
1 decade ago Jan 29, 2011 3:47pm
Henri Sara
1 decade ago Jan 31, 2011 6:47am
Tullio Bettinazzi
1 decade ago Jan 31, 2011 12:23pm
Henri Sara
1 decade ago Feb 01, 2011 8:10am
Tullio Bettinazzi
1 decade ago Feb 01, 2011 10:50am
Tullio Bettinazzi
1 decade ago Feb 04, 2011 11:28am
Pieter Bosman
1 decade ago Apr 12, 2011 11:47am
Dorothea Karalus
7 years ago Oct 08, 2014 7:13am