Thursday, May 9, 2013

Re: Serialization help

Hi Mohammed-

Thanks for taking a look and thanks for the response, but I don't think you understood my question (or I wasn't clear enough).

I realize that I'm breaking the "serialization policy".  Specifically, Subtype is in the server package and not the client (its parent is Serializable, so that isn't the problem).

My question is ... how do I get it to serialize the parent class?  If I have an object that is type Subtype I would like it to serialize the Type portion of it.  I was hoping a cast would be sufficient but that doesn't seem to help.

On Thursday, May 9, 2013 6:10:52 PM UTC-7, Mohammad Al-Quraian wrote:
Any object that is sent/received  via RPC has to adhere to the serialization policy:
So, Subtype has to be Serializable. On ther other hand, if you only want to get Subtype, then just declare that in your service and forget about the Type if you never going to receive it.

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

No comments:

Post a Comment