I have a DTO object with fields:
public class EmpDTO extends BaseModel implements java.io.Serializable {
private short empno;
private EmpDTO emp;
private DeptDTO dept;
private String ename;
private String job;
I try output this class in the grid:
List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
ColumnConfig clmncnfgEname = new ColumnConfig("ename", "ename", 150);
configs.add(clmncnfgEname);
ListStore<EmpDTO> store = new ListStore<EmpDTO>();
EmpDTO empDTOtmp = new EmpDTO();
empDTOtmp.setEname("Name");
store.add(empDTOtmp);
Grid<EmpDTO> grid = new Grid<EmpDTO>(store, new ColumnModel(configs));
mainContentPanel.add(grid);
But i see empty grid with out error. How to fix this?
Do you have to use BaseModel? Rather than extending BaseModel why not implement BeanModelTag?
Otherwise make sure setEname looks like this:
And getEname looks like this: