0
我使用vaadin 7.7.7Vaadin-无法在组合框的值变化更新网格容器
在网格我有在列 之一的组合框作为编辑项目作为
grid.addColumn("columnProperty").setEditorField(combobox);
我需要根据组合框选择更改来更新同一行中的属性/单元格
我的问题是,选择更改事件触发两次,一次单击组合框时,第二次更改选择值。但是下一个单元格中的更新值仅在第一次用户界面时才反映出来。 下面是编写的代码。任何解决方案
Combobox.addValueChangeListener(new ValueChangeListener()
@Override
public void valueChange(ValueChangeEvent event) {
// below line works only first time when the combobox is clicked,but i want
//it when the item in the combobox is changed
gridContainer.getContainerProperty(editedRow,"editedColumProperty").setValue("ValueTobeUpdated");}
});
需要更新在编辑模式组合框中变化中的单位列(保存之前)
请参考以下链接图像
但addComitHandler触发保存点击。我需要在保存之前根据组合框更改值更新其他单元格(在编辑模式下)。参考问题中的图片。 – Nilambari
谢谢..这帮了我:) – Nilambari