View Full Version : Help with ModelData

14 Feb 2013, 6:37 AM
Hello, I'm using gxt 2.2.5 and gwt 2.5.0, and I have a problem with ModelData. Here is example. I have grid and columnConfig. So:

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; } });

when I try to do something with my list emenetns, I get some kind of type casting error. I used a debugger and it appears that type of my list elements is
com.example.core.application.api.BeanModel_com_example_core_application_api_AccountGroupDto and it can't be cast to
com.example.core.application.api.AccountGroupDto, which it should be. This error appeared when i've upgraded from gwt 1.7 and from gxt 2.0.1