Sunday, October 24, 2010

Re: Are user defined Serilizable objects supported as Request parameters?

On 24 oct, 01:35, Aldo Neto <tumo...@gmail.com> wrote:
> Hi All,
>
> We are adding to a <Entity>Request method a parameter that is a serializable
> type we defined (basically a POJO consisting of Strings and primitive
> types), but it fails on the code below with that error message. Isn't
> Serializable types supported as they where on standard RPC?

RequestFactory (as of 2.1.0) only supports entities and "simple
types". From the doc:
"""It is not designed for general purpose services like GWT-RPC, but
rather for data-oriented services [...]. RequestFactory does not use
GWT-RPC and is not intended to replace it. It is designed specifically
for implementing a persistence layer on both client and server."""
http://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.html

Maybe when "embedded values" are supported (hopefully in 2.1.1) then
such non-entity objects will be accepted as well:
https://jira.springsource.org/browse/ROO-936
But I believe it would be with client-side interface vs. server-side
object, as with entities, and not "serializable POJO" as in GWT-RPC.

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