PDA

View Full Version : Problem with memory paging



edumrf
4 Jun 2009, 4:54 AM
Hi, i'm having a little problem with memory paging, i copied the code from gxt 2.0 M2 sample to my project and keep getting an error:

- Bound mismatch: The type PagingLoadResult<ModelData> is not valid substitute for the bounded parameter <C extends PagingLoadConfig> of the type PagingLoader<C>
- Incorrect number of arguments for type BasePagingLoader<C,D>; it cannot be parameterized with arguments <PagingLoadResult<ModelData>>



//DyadBaseModel extends from BaseModel
private List<DyadBaseModel> lookupStore = null;

// add paging support for a local collection of models
PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(lookupStore);

// loader
PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
The weird thing is that it works on the samples.
Any help would really be appreciated. Thanks.

14048

danilosampaio
5 Jun 2009, 4:06 AM
I have the same problem with local paging...
Any help?

edumrf
5 Jun 2009, 4:19 AM
Just removed gxt-servlet.jar from the classpath and it worked!