Hello everyone,
I am having a problem with the Vaadin Grid in Vaadin 7. I’ve enabled the inline editor in the following way:
mitarbeiterGrid.setEditorEnabled(true);
mitarbeiterGrid.setEditorCancelCaption("Abbrechen");
mitarbeiterGrid.setEditorSaveCaption("Speichern");
ComboBox fuehrtZdBox = new ComboBox();
ComboBox nimmtTeilBox = new ComboBox();
fuehrtZdBox.addItems("Ja", "Nein");
fuehrtZdBox.setNullSelectionAllowed(false);
nimmtTeilBox.addItems("Ja", "Nein");
nimmtTeilBox.setNullSelectionAllowed(false);
Column fuehrtZdColum = mitarbeiterGrid.getColumn("fuehrtZd");
fuehrtZdColum.setEditorField(fuehrtZdBox);
Column nimmtTeil = mitarbeiterGrid.getColumn("nimmtTeil");
nimmtTeil.setEditorField(nimmtTeilBox);
I am using a BeanItemContainer to supply the grid with data. The grid is made with the Vaadin Designer and uses the following Content:
[code]
Mitarbeiter | Führt ZD | Nimmt Teil |
---|
What is going wrong here? Why doesnt it work?