Reputation: 1836
I have a GWT
CellTable
that I have just moved from a PopupPresenter
to a regular nested PresenterWidget
. I am using GWTP.
Since moving it, the FieldUpdater
on my ButtonCell
is not calling the update()
method at all. I have tried a test button and the same thing happens.
// edit offer
Column<OfferDto, String> buttonColumn = new Column<OfferDto, String>(new ButtonCell(IconType.PLUS, ButtonType.SUCCESS))
{
@Override
public String getValue(OfferDto object)
{
return "View/Edit";
}
};
buttonColumn.setFieldUpdater(new FieldUpdater<OfferDto, String>()
{
@Override
public void update(int index, OfferDto object, String value)
{
// NOTHING IN HERE IS BEING CALLED
System.out.println("Update called in setFieldUpdater...");
getUiHandlers().onAddCommsClick(index, object);
}
});
table.addColumn(buttonColumn);
I'm at a loss as to what could be causing it. Other regular buttons in the same View still work OK, it's just the CellTable.
Upvotes: 1
Views: 632