I have a CellTable with a column of TextInputCells.
When i set the value through the UI, manually, the bean is modified.
But, then, when i set the value directly into the bean, i can’t make the Table to show the modification. It will always keep what i assigned manually.
Here’s my column :
FieldUpdater<MyBean, String> myFu = new FieldUpdater<MyBean, String>() {
@Override
public void update(int index, MyBean object, String value) {
object.setValue(value);
}
};
Column<MyBean, String> myCol = new Column<MyBean, String>(new TextInputCell()) {
@Override
public String getValue(MyBean object) {
return object.getValue();
}
};
Here’s the action :
@UiHandler("myButton")
public void myButton_onClick(ClickEvent event) {
for (MyBean my : listOfBeans)
my.setValue("value");
}
I tried to call table.redraw() or clearing and refilling the ListDataProvider, after the action, but it doesn’t change anything.
What can i do ?
Thanks
Ok, i found a (far fetched) way. It’s crappy but it works.