Re: AutoBean polymorphism support
No, AutoBean has no mean to support polymorphism, and it specifically cannot be used for your use-case.
You can possibly use Splittable, at a lower-level, or Elemental's JSON, JS overlays, or JSONObject.
On Saturday, October 13, 2012 12:40:16 PM UTC+2, Andrea Boscolo wrote:
-- On Saturday, October 13, 2012 12:40:16 PM UTC+2, Andrea Boscolo wrote:
Hi all,
I am developing an app in which I use (or at least I would like to use) AutoBeans for serializing data. Unfortunately it seems to me that polymorphism is not supported i.e., I lost the concrete type once I deserialize the json in client-side, only the Base supertype is available.
I looked everywhere but I haven't found some concrete answer, so I hope someone has already faced (and why not, solved) this problem.
I created a really simple testcase that can be found on https://gist.github.com/3884099
I know AutoBean is behind RequestFactory so I though it supports polymorphism as well. I don't want to rely on RF as I do not need such complexity, I just simply need a way to serialize beans using AutoBean, but polymorphism is a must.
Is is even achievable? Hope someone can help.
Thanks in advance,
Andrew.
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/-/5xKnC_KM-pUJ.
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