This is exactly what I'm looking for, thanks!

As suggested, I've used AutobeanCodex to convert my proxy to json. And upon 
receiving it on the server side, I could re-create the Proxy using 
AutoBeanFactorySource. 

Now I've to convert the proxy to concrete type. 

*// this works!*
AppAutobeanFactory autobeanFactory = 
AutoBeanFactorySource.create(AppAutobeanFactory.class);

CampaignSearchCriteriaProxy proxy = AutoBeanCodex.decode(autobeanFactory,
CampaignSearchCriteriaProxy.class, json).as();

logger.info("@autobean @clientId " + proxy.getClientId());

*// I tried this, but this fails (just got ValueCodex this by tracing RF 
Servlet)*
SearchCampaignRequest searchCampaign = 
ValueCodex.decode(SearchCampaignRequest.class, 
AutoBeanCodex.encode(AutoBeanCodex.decode(autobeanFactory,
CampaignSearchCriteriaProxy.class, json)));

logger.info("@valuecodex @clientId " + searchCampaign.getClientId());

As a last piece of the solution I've got the following questions:

   1. How does GWT RF maps Proxy to Concrete Types on the server-side?
   2. Is it possible to use the class directly?
   

Thanks, 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/AHyEivK_55gJ.
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