Search code examples
gwtgwt-rpcgxt

ModelData interface gxt


I'm implementing a server-client data transfering in gxt. So, I have a Bean class and a class that extends BeanModelMarker. Then I fill my bean's fields with data from DB on server. Then I use GWT RPC

Should I use gxt beanmodelfactory to convert my beants to model data and to fill my grid? Where and when should I use it?


Solution

  • You need to use the BeanModelReader in the loader:

    BeanModelReader reader = new BeanModelReader();
    ListLoader<ListLoadResult<ModelData>>loader = new BaseListLoader<ListLoadResult<ModelData>>(proxy,reader);