Hello, i'm investigating using a restdatasource in my client code, and i have a few questions i'm really hoping you can help me with.
1. EXISTING REST SERVICE
I've read your documentation re. restdatasource and how you expect the json to be formatted (here: https://www.smartclient.com/smartgwt...ataSource.html)
However, i am going to connect to services using spring mvc using slice etc. and their stucture is this:
data itself is in a root "content"-node.
metadata looks like:
If i cannot alter this, what is your recommended approach to using these json structures in databound smartgwt components? Some transformer (client/serverside)? Where do i put it?
2. LOADING DATASOURCES
I have a bunch of smartgwt-specific datasources as well, defined in xml, downloaded on startup, calling spring services. Is it possible to also define restdatasources in xml, and have them downloaded the same way? The usecase here is to have all datasources defined in the same place and in the same way. This would be beneficial for i18n, validation etc. If not, ok, just thought i'd ask.
Thoughts appreciated.
1. EXISTING REST SERVICE
I've read your documentation re. restdatasource and how you expect the json to be formatted (here: https://www.smartclient.com/smartgwt...ataSource.html)
However, i am going to connect to services using spring mvc using slice etc. and their stucture is this:
data itself is in a root "content"-node.
metadata looks like:
Code:
"numberOfElements": 3, "first": true, "last": false, "sort": null, "size": 3, "number": 0
2. LOADING DATASOURCES
I have a bunch of smartgwt-specific datasources as well, defined in xml, downloaded on startup, calling spring services. Is it possible to also define restdatasources in xml, and have them downloaded the same way? The usecase here is to have all datasources defined in the same place and in the same way. This would be beneficial for i18n, validation etc. If not, ok, just thought i'd ask.
Thoughts appreciated.
Comment