Announcement

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

    Record to/from Java Object

    On the server side there is DataTools.setProperties, is there anything like this on the client side?

    I would like to be able to convert to/from Records and Java Objects. Is this possible? Can you please provide a small example of this working.

    Thanks in advance for what seems like a basic question.

    #2
    If you're using some kind of reflection support for gwt (i.e., gwt-ent [1]), you can easily create the record objects in the automated way. Other than that, stick to RestDataSource, and return your java objects in JSON format using Jackson library instead - that will save you a lot headaches. Also, SmartGWT quickstart guide is a good piece of information to read to give you insights on how to integrate your data.

    [1] http://code.google.com/p/gwt-ent/

    regards,
    Andrius J.

    Comment

    Working...
    X