atom feed3 messages in org.codehaus.grails.userRe: [grails-user] Bug in GWT-Plugin S...
FromSent OnAttachments
Daniel KimmigApr 16, 2008 5:29 am 
Peter LedbrookApr 16, 2008 6:16 am 
Daniel KimmigApr 16, 2008 10:11 am 
Subject:Re: [grails-user] Bug in GWT-Plugin Servlet causes GWT-RPC to use LegacySerializationPolicy (found solution)
From:Peter Ledbrook (
Date:Apr 16, 2008 6:16:31 am

After step debugging the creation of the SerializationPolicy I found out that you could stop this behavior and make GWT use the "StandardSerializationPolicy" which is the current best solution to use. In order to achieve that I manually changed the "GrailsRemoteServiceServlet" provided by the GWT-plugin. Changes/Solution At line 22:

//before: RPCRequest rpcRequest = RPC.decodeRequest(payload, null) //needs to be... RPCRequest rpcRequest = RPC.decodeRequest(payload, null, this)

and at line 54

//before:return RPC.encodeResponseForSuccess(serviceMethod, retval) //needs to be... RPC.encodeResponseForSuccess(serviceMethod, retval, rpcRequest.getSerializationPolicy())

Doing these changes made it much easier to serialize custom classes to my client code. I am using GWT 1.5 Milestone 2, Grails 1.0.1 and GWT-Plugin 0.24.

Could you please raise an issue and attach a patch? Also, do you know whether the changes work with GWT 1.4.61?



-- Software Engineer G2One, Inc.

--------------------------------------------------------------------- To unsubscribe from this list, please visit: