I'm trying to implement an equivalent to Ext.ux.grid.MetaGrid which enables dynamic reconfiguration of a grid from metadata retrieved from server.

So, I have created a service which returns a list of ColumnConfig, then client makes an async call to retrieve it and create the grid with it

The problem is that ColumnConfig is not serializable nor its sub classes due to references to non serializable/nion primitive objects .

I worked around this by creating a POJO which holds the few properties I need for building ColumnConfig objects on client in the async callback.

I am wondering if there is a better way to do it or any plan to make this easier in the future?