GWT with JDO problem

后端 未结 6 1480
抹茶落季
抹茶落季 2020-12-15 01:24

I just start playing with GWT I\'m having a really hard time to make GWT + JAVA + JDO + Google AppEngine working with DataStore. I was trying to follow different tutorial bu

6条回答
  •  被撕碎了的回忆
    2020-12-15 02:08

    The second tutorial you've referenced has a section on shadowing the com.google.appengine.api.datastore.Key class, since it's not available to GWT:

    Since I'm not doing anything with the Key class on the client I'm going to stub it out. This actually requires a few steps and involves the super-src feature of GWT XML module files.

    You might want to take a look at the GWT documentation, which states that

    The heart of GWT is a compiler that converts Java source into JavaScript

    , therefore you need to have the source code available to use a given class in the client code.

提交回复
热议问题