Unable to get Bean Model Data Grid working . Can anyone help me out on
why my data grid is not working . I checked the callback object . Its
comming up right from the server . Here is my code .
Just the data grid with collumn header comes up .
MY DTO : EmpCounty implements BeanModelTag, Serializable
VerticalPanel vp = new VerticalPanel();
// proxy and reader
final RpcProxy<List< EmpCounty >> proxyB = new
RpcProxy<List<EmpCounty >>() {
@Override
public void load(Object loadConfig,
AsyncCallback<List<EmpCounty>> callback) {
String key = "israel";
myService.loadObject(key, callback);
loader.load();
}
};
BeanModelReader reader = new BeanModelReader();
// loader and store
ListLoader<ListLoadResult<ModelData>> loader = new
BaseListLoader<ListLoadResult<ModelData>>(proxyB, reader);
ListStore<BeanModel> store ;
store = new ListStore<BeanModel>(loader);
loader.load();
// column model
List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
columns.add(new ColumnConfig("name", "name", 200));
columns.add(new ColumnConfig("country", "country", 100));
ColumnModel cm = new ColumnModel(columns);
Grid<BeanModel> grid = new Grid<BeanModel>(store, cm);
grid.setAutoExpandColumn("country");
grid.setHeight(300);
vp.add(grid);
RootPanel.get().add(vp);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---