Hello,
We’re trying to design an approach that would allow us to seamlessly mix the standard SmartGWT DataSources with a custom subclass of RestDataSource within the same application. The idea is to be able to use SmartGWT server plus client-side data integration pattern in a way where the client is not aware which DataSource is a standard and which is a custom one. We were able to mimic the behavior of the DataSourceLoader by implementing a custom servlet that produces the DataSource config, but how should we call create() on the custom subclass instead of DataSource class? Would that RestDataSource subclass be accessible through the regular DataSource.get() call or we would have to implement a parallel API for REST DataSources?
We’re trying to design an approach that would allow us to seamlessly mix the standard SmartGWT DataSources with a custom subclass of RestDataSource within the same application. The idea is to be able to use SmartGWT server plus client-side data integration pattern in a way where the client is not aware which DataSource is a standard and which is a custom one. We were able to mimic the behavior of the DataSourceLoader by implementing a custom servlet that produces the DataSource config, but how should we call create() on the custom subclass instead of DataSource class? Would that RestDataSource subclass be accessible through the regular DataSource.get() call or we would have to implement a parallel API for REST DataSources?
Comment