BeanModel generation with AutoBean support

BeanModel generation with AutoBean support

We've recently converted our in development webapplication from using GWT-RPC to using RequestFactory. In this process we could not get the BeanModelGenerator to read the getters from the proxy interface. The following generator fixes this problem.

Thank you for sharing this. I've been looking for a way to use ExtGWT with GWT 2.1.1 RequestFactory as well, but I couldn't find any infos about this on forums, etc. I'm glad I've found your post, but I have some questions:

Did you find easy to work with ExtGWT + RequestFactory after making this patch?

Did you encounter any other issues after doing this?

By defining the generate-with in GWT module def file, does this mean all your *Proxy client beans will be automatically wrapped by the generator?

Suppose you have a PersonProxy bean that has the name property. How do you specify in code that the AutoBean for this should be used for filling a TreePanel?

> Did you find easy to work with ExtGWT + RequestFactory after making this patch?
We've been using this factory for over a month now, and I've never had any problems with it.

> Did you encounter any other issues after doing this?
This factory seems to work exactly like the one provided in GXT.

> By defining the generate-with in GWT module def file, does this mean all your *Proxy client beans will be automatically wrapped by the generator?
Using the generate-with replaces the GXT factory with the provided one. You will still have to tag your model classes in the same way as if you wanted them to be processable by the old factory.

> Suppose you have a PersonProxy bean that has the name property. How do you specify in code that the AutoBean for this should be used for filling a TreePanel?
You set the display property as you would do otherwise:
tree.setDisplayProperty("name");

I've tried to make one of my proxies, interface CityProxy extends ValueProxy, ModelData so that the generator will automatically generate a ModelData implementing wrapper for it. Not sure this is the way to use actually use the generator you built, but it throws this error: