0
在我的应用程序中我使用gwt 2.5.0和gxt 2.2.5。所以,我有我的ColumnConfig柱与此渲染:GXT model.get()返回错误类型的实例
column.setRenderer(new GridCellRenderer() {
@Override
public Text render(ModelData model, String property, ColumnData config, int rowIndex, int colIndex, ListStore listStore, Grid grid) {
List<AccountGroupDto> accountGroups = model.get(property);
// some stuff here
return groupsText;
}
});
但是,当我尝试做一些与我的名单emenetns,我得到了某种类型转换错误。我使用了一个调试器,看起来我的列表元素的类型是com.example.core.application.api.BeanModel_com_example_core_application_api_AccountGroupDto
,它不能转换为com.example.core.application.api.AccountGroupDto
,它应该是。
此错误出现时,我已经从1.7和GXT从2.0.1