Questions tagged [autobean]

The AutoBean Framework provides automatically-generated implementations of bean-like interfaces and a low-level serialization mechanism for those interfaces. AutoBeans can be used in both client and server code to improve code re-use. For example, the Requestfactory system uses AutoBeans extensively in both the client and server code.

The AutoBean framework provides automatically-generated implementations of bean-like interfaces and a low-level serialization mechanism for those interfaces. AutoBeans can be used in both client and server code to improve code re-use. For example, the Requestfactory system uses AutoBeans extensively in both the client and server code. This document describes the state of AutoBeans as found in the GWT 2.1.1 release.

62 questions
16
votes
2 answers

GWT AutoBean with POJO class instead of interface

I'm hoping someone can suggest a simple solution to my problem. I have a POJO, say: public class Person { private String name; public String getName(){ return name; } public void setName(String name){ this.name = name; } } I'd like to…
Naijaba
  • 1,019
  • 1
  • 13
  • 24
7
votes
1 answer

GWT Autobean - how to handle lists?

I have been trying to evaluate GWT Autobean feature to decode/encode JSON object to domain objects for REST calls. Following the example : http://code.google.com/p/google-web-toolkit/wiki/AutoBean#Quickstart I was able to convert a singular JSON…
ankurvsoni
  • 2,064
  • 3
  • 18
  • 22
7
votes
1 answer

How to serialize a list in AutoBean (GWT)?

I'm trying to figure out how to serialize a list using AutoBean in GWT, but I keep getting a Null Pointer Exception. Here's what I have: GuideCreatorFactory beanFactory = AutoBeanFactorySource.create(GuideCreatorFactory.class); List
Cuga
  • 17,668
  • 31
  • 111
  • 166
6
votes
1 answer

Parsing JSON objects of unknown type with AutoBean on GWT

My server returns a list of objects in JSON. They might be Cats or Dogs, for example. When I know that they'll all be Cats, I can set the AutoBeanCodex to work easily. When I don't know what types they are, though... what should I do? I could give…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
6
votes
2 answers

Is there a way to downcast a GWT AutoBean?

I've been using AutoBeans to map JSON data coming from a non GWT-RPC Java based web service. Everything has been working so far except for one mapping. On the server side, the Class has a property of type Map where MyAbstractParentObject is the…
timmyonline
  • 193
  • 13
6
votes
1 answer

How is the api doc generated @ http://api.highcharts.com/

I cannot find anything relate to it from github https://github.com/highslide-software/highcharts.com Guessing Google Closure Library javadoc parser https://developers.google.com/closure/compiler/docs/js-for-compiler#tags Custom Code? I wanted to…
appbootup
  • 9,537
  • 3
  • 33
  • 65
5
votes
4 answers

GWT manually serialize domain object on server

The first thing my GWT app does when it loads is request the current logged in user from the server via RequestFactory. This blocks because I need properties of the User to know how to proceed. This only takes < 500ms, but it really annoys me that…
Brad
  • 5,428
  • 1
  • 33
  • 56
5
votes
0 answers

How to override autobean enconder and decode for Dates

The thing i want to do is to add a custom encoder/decoder using ISO 8601. I think i can do that creating a custom version of GWT build but this is not convenient... Any ideas ? Thanks!
4
votes
2 answers

NullPointerException when using GWT's AutoBean deserialization with HashMap

I have some problem with the Google's AutoBean serialization and deserialization. I have an AutoBean that contains primitive types and Maps as well. I can serialize and deserialize the primitive types without any problem, but when i try to read the…
SaWo
  • 1,515
  • 2
  • 14
  • 32
4
votes
2 answers

GWT Convert RPC to JSON

My application uses GWT-RPC to communicate to the server. Is there anyway to transparentlly serialzie my data using JSON without changing the RPC layer? IMHO this could be acheived by changing the serializers and using autobean codex in the UI. Why…
Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59
4
votes
1 answer

AutoBeanCodex.encode leaves out properties with default values

I'm comunicating with a web service via AutoBeans that are converted to JSON. The problem is that the web service expects every property of the JSON object to be present in the request whereas AutoBeanCodex.encode() seemingly leaves out all…
Joey
  • 344,408
  • 85
  • 689
  • 683
3
votes
1 answer

GWT Atmosphere + RequestFactory

I'd like to produce following behaviour: User in the browser saves some entity. After entity is saved on the server side, it generates notification and it must notify all other clients by means of Atmosphere with updated entity instance. So the…
CHEM_Eugene
  • 438
  • 3
  • 20
3
votes
2 answers

How preserve order of LinkedHashMap while serializing to GWT AutoBean?

I've tried using Map, HashMap and LinkedHashMap as a type for AutoBean factory and always after serializing it's changing initial elements order. I don't want to send additional ArrayList that will hold the order data. Is there a way to force…
denu
  • 2,170
  • 2
  • 23
  • 28
2
votes
1 answer

How to handle dynamic JSON data with GWT Autobeans?

Currently I have a class setup to be processed as an autobean: public interface Asset extends Hit { String getGuid(); String getHitType(); Map getMetadata(); } I tried using Object instead of…
Matt Traynham
  • 205
  • 3
  • 11
2
votes
2 answers

A parameterized AutoBean type containing a typed member

Question Is there any way to deserialize JSON using the AutoBean framework such that the resulting bean has a type parameter that affects the type of one or more of its members? Background RPC with JSON results I'm using GWT (RequestBuilder) to…
Wesley
  • 10,652
  • 4
  • 37
  • 52
1
2 3 4 5