Friday, August 5, 2011

RequestFactory custom serialization

Is there any way to customize how RequestFactory serializes a certain
type? I have a type that extends java.util.Date so that anything that
is purely a date will stay the same no matter what timezone the user
is in. I achieved that when I was using RPC through the
CustomFieldSerializer. However, since going to RequestFactory I
haven't seen any way to make it serialize as just a formatted date
string. How is everyone else handling sending dates to the client
that have no associated time? Based on the user's clock, if it's
different from the server's timezone, it will change days as far as I
know since it will default to midnight on the server's time.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate