Hi,
Trying to use a OptionGroup here but can’t manage to set an explicit caption. If I do this (in Scala):
[code]
val gender = new OptionGroup(“Sukupuoli”)
gender.setMultiSelect(false)
gender.setItemCaptionMode(ItemCaptionMode.EXPLICIT)
val m = gender.addItem(1)
val f = gender.addItem(0)
gender.setItemCaption(m, “MIES”)
gender.setItemCaption(f, “NAINEN”)
gender.select(m)
[/code]I get the radio buttons but there is no caption next to them. If I remove the explicit setItemCaption call (line 3) then I get a 1 and 0 next to the buttons. Is this a bug or how should this work? It seems to work if I use the parameterless call to addItem(), but I can’t use generated IDs in my data model. Using Vaadin 7.0.4. Thanks!