That restricts me to destinations that are within my control and are Java based. Say I want to send some data to a restful server based on node.js, fo example. The AutoBeans are very useful because they allow me to create beans without the need to code my own toJson() method on each object. I understand what you are saying, but the fact remains that the output from the getPayload does not serialize the object into JSON that any JSON parser can accurately reconstruct.
On Fri, Jul 19, 2013 at 2:00 PM, Jens <[email protected]> wrote: > I would say its an AutoBean Framework optimization and it is working as > intended. The framework assumes that you use AutoBeanCodex.decode() to > parse the payload, which will probably set all AutoBean properties to > default values and then update the ones found in the payload. There is no > need to have default values in the payload if you can recreate them. As > AutoBeans are based on interfaces, the framework knows the type of each > property and thus knows the default value. > > So you should either use AutoBeanCodex.decode() or setup the default value > in PocJsObject.getIntValue() yourself. > > -- J. > > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google Web Toolkit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-web-toolkit/dyPqr7O_RnA/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
