I have a bunch of Spring services as datasources (lookupstyle = spring). Many of my middleware services return slices for pagination etc. However, i cannot just add that in the dsresponse, since it will make the structure wrong.
Therefor i have to create spring classes between my middleware services and smartgwt just to do slice.getContent() and put that in the DSResponse manually.
Is there some way to make smartGWT "understand" the slice object so that i can have the ds.xml call my spring middleware service directly and extract the data from the slice?
simplified example:
Therefor i have to create spring classes between my middleware services and smartgwt just to do slice.getContent() and put that in the DSResponse manually.
Is there some way to make smartGWT "understand" the slice object so that i can have the ds.xml call my spring middleware service directly and extract the data from the slice?
simplified example:
Code:
Slice<Image> images = imageService.getImages(); DSResponse resp = new DSResponse(images.getContent()); return resp;
Comment