I've actually written some wrappers around the app-engine specific
data containers.  I wrote it a while ago, so some things that are new
are missing (like Address, Phone etc.)  But Text and User are in there
(along with some others).
here is the library:
http://www.resmarksystems.com/code/

it's implemented using the standard Xyz_CustomFieldSerializer pattern
(used by pretty much any module that allows RPC serialization of non
core gwt classes).
just inherit it in your gwt.xml and you should be off to the races  :)

I try to use the core data types of my system as often as possible,
sometimes you need a lighter weight container, i.e. DTO, but I find it
lame and un-nessisary to duplicate code just to send simple fields
like a Text instance over an RPC channel as a plain String, or a GAE
Key instance.  It's helped me on our project quite a bit.

hope this helps!

-bryce

On Dec 6, 3:34 am, Dalla <[email protected]> wrote:
> Hi all
>
> I´m just now getting started with using GWT and GAE.
> Curious about best practices when it comes to JDOs, and how to handle
> them client side.
>
> Let´s say I want to store a String and a User object that would be
> picked up from the UserService.
> Since the GWT compiler doesn´t emulate com.google.appengine, what is
> the best way to reach the user object from the client side?
> Plain old DTOs?

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to