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