Announcement

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

    #31
    benjaminberry,

    First thanks for your share.

    I have a problem with casting Record to ListGridRecord...

    I work with SmartGWT 2.2, Java 1.6 and GWT 2.0.4, but also I tested with SmartGWT2.1 and It's the same...

    This not compile:
    ListGridRecord[] records = response.getData();

    And this...,
    ListGridRecord[] records = (ListGridRecord[]) response.getData();

    ...throws java.lang.ClassCastException: [Lcom.smartgwt.client.data.Record; cannot be cast to [Lcom.smartgwt.client.widgets.grid.ListGridRecord;

    Can you help me? Thank you so much.

    Comment


      #32
      Hi,

      Does anyone know how to make gwtrpcdatasource to fetch/update data from a web service which sends json data.

      Here is what I assume we should do. If anyone has other ideas then do let me know :

      1. In the impl file connect to the webservice using some http connector api.
      2. The result is a json string.
      3. Parse the json using some json parsing api and copy in the data beans
      4. Add these to the list and return.

      Isn't this a lot of overhead?

      Comment

      Working...
      X