I have a CellTable<Price> table = new CellTable<Price>();.
I also have a TextInputCell column:
priceColumn = new Column<Price, String>(new TextInputCell()) {
public String getValue(Price p) {
if (p.getPrice() == 0)
return "";
return p.getPrice()+"";
}
};
Also I have a refresh button. If the button is pressed, then it basically reload all data from server and then set the data to the table.
When the table first time load data, it is fine. Let’s say, a cell has price of 12.
Then if I modify that cell to 11 (or whatever value other than 12), then the 11 stays there forever. I mean, even if I press the refresh button, the cell’s data will not change back to 12, but still stay 11.
How can I make the column / cell not remembering the user input?
After you received the new data and updated your objects with the new data call
table.redraw();Working example