I think this has come up before. BeanAdapter wraps a single bean instance and 
exposes its (immediate) properties via map methods. You can access nested 
properties using JSON.get(), put(), etc. 

However, TableView does not currently expect paths in column names, only keys. 
It could be modified to use JSON.get() instead, but I'm on the fence about 
whether that is a good idea or not.

On Jun 22, 2011, at 3:25 PM, Edvin Syse wrote:

> I have a TableView that I want to show the following column:
> 
> <TableView.Column name="data.group"/>
> 
> My model object contains a Map called data with an entry for 'group'. This 
> seems to fail in BeanAdapter#containsKey, because it only looks for a getter 
> method. I looks like it could be adapted to support maps without too much 
> hassle, but maybe there is another way to do this that doesn't require a 
> change to the BeanAdapter?
> 
> Would it be valuable to make BeanAdapter wrap Map properties?
> 
> -- Edvin

Reply via email to