Sunday, February 10, 2013

Re: Using UUID in GWT?

UUID is not emulated by GWT so you can't use it out of the box.

Take a look at http://concentricsky.com/blog/2011/mar/emulating-jre-classes-gwt if you want to emulate UUID yourself. The link also covers CustomFieldSerializers that are needed for GWT-RPC if you want to send UUIDs over the wire.

Out of the box you can only use all the classes/methods listed at:

https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation

-- J.

Am Sonntag, 10. Februar 2013 19:02:30 UTC+1 schrieb membersound:
Hi,

I tried using java.util.UUID on the client side to generate some unique id's for a list that will be placed into a CellTable.

Unfortunately GWT does probably not support UUID on the client side??
No source code is available for type java.util.UUID; did you forget to inherit a required module?

Or is it somehow possible to "inherit" UUID as the compiler tells me?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment