Thursday, September 16, 2010

Configurable Date Serialization in GWT RPC

Hi,

There is a number of discussions exist where people ask how they can
serialize dates without timezone. And most popular solution to this
problem is to replace the default implementation provided by
Date_CustomFieldSerializer class in gwt-servlet.jar (gwt-user.jar)
with modified version which ignores the timezone. This solution
requires recompilation of gwt jars which will result in producing your
own custom version of GWT library.

With every new release of GWT, this date serialization fix has to be
applied again and again which is very painful and error-prone process.

I wonder how many people had to go through this excise and implement
similar fix?

I would like to propose a feature request to GWT team to allow custom
field serializer to be registered for the Date class via some sort of
configuration to replace the default implementation.

--
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.

No comments:

Post a Comment