Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Client side REST data sources

    I'm used to using SmartGWT 2.4 Pro edition, but I'm giving a conference talk on GWT and am planning on including a section on the LPGL edition, and this has presented me with an unexpected issue.

    I've set up a REST web application no problem and I've got my data sources working with it, but I'm a little confused as to where these datasources are stored after creation, except through a direct reference. I'm used to calling DataSource.get(<data source name>), which is not working here. However, these definitions must be available some how because when I use a datasource that inherits from another, the parent datasource's fields and customizations are available in the child.

    I've genned up a datasource resolver class that initially creates all of the datasources I need and then returns the correct source for a given key, but this is awkward and if there is a way to get the datasources without this, I'd much rather shown my attendees that.

    Thanks for your time

    #2
    DataSource.get() is the right API, but it works by ID as set by DataSource.setID(), not by name as you mentioned, is that possibly the problem?

    Comment

    Working...
    X