为什么cellListDataProvider控制的ButtonCell列的CellList行为怪异?它是Gwt bug吗?

为什么cellListDataProvider控制的ButtonCell列的CellList行为怪异?它是Gwt bug吗?,gwt,gwtp,Gwt,Gwtp,我正在使用Gwt 2.5,我得到了以下非常简单的代码: ButtonCell buttonCell=new ButtonCell(); CellList<String> cellList = new CellList<String>(buttonCell); ListDataProvider<String> cellListDataProvider = new ListDataProvider<String>(); List<String&g

我正在使用Gwt 2.5,我得到了以下非常简单的代码:

ButtonCell buttonCell=new ButtonCell();
CellList<String> cellList = new CellList<String>(buttonCell);
ListDataProvider<String> cellListDataProvider = new ListDataProvider<String>();
List<String> data = cellListDataProvider.getList();
for (int i = 1; i < 12; i++) {

  data.add( String.valueOf(i));
}
cellListDataProvider.addDataDisplay(cellList);
SimplePager pager=new SimplePager();
pager.setDisplay(cellList);
pager.setPageSize(3);
那么这有什么错呢


如果我将ButtonCell更改为TextCell,则根本没有问题。

该问题是由于DefaultKeyboardSelectionHandler造成的。请检查该处理程序的执行情况。 您可以通过禁用手机列表的键盘选择策略来解决问题

cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);

谢谢你,但我想我可以使用ClickableTextCell(),它没有这个问题 4 5 6 7 8 9
cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);