I have a DataGrid and I am setting a column with a TextButtonCell .
If nothing is selected, everything is in order.

But as soon as I select a line, the text on the button disappears.

How can I stop the text on a button disappearing?
Edit
Below is the code I created in this column:
Column<Publication, String> buttonColumn = new Column<Publication, String>(new TextButtonCell()) { @Override public String getValue(Publication pub) { ((TextButtonCell)getCell()).setEnabled(pub.isPublishable()); return "Publish"; } }; buttonColumn.setFieldUpdater(new FieldUpdater<Publication, String>() { @Override public void update(int index, Publication pub, String value) { publish(pub); } }); pubDG.addColumn(buttonColumn);
source share