Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[riena-dev] Binding a 1:n:1-related Bean to a TableRidget - referring BUG 254447 - ITableRidget - formatter for columns

Hi,

actually i am searching for a way to resolve the following problem and thought about using a IColumnFormatter. But I am not sure, if this is the best matching solution using riena.

I am binding a bean (Header) to a tableRidget. This bean offers a Collection<Details>. A Detail has a 1:1 relation to the AdressBean. And i'd like to show the attributes of the AddressBean mixed with attributes of Detail as tableColumns. I think this wont work without using a IColumnFormatter.

The IColumnFormatter returns the desired attribute value. So i will create a IColumnFormatter for each column and register them at the tableRidget.

I think it is important, to bind each column showing attributes of Address to the same property - the address. And the IColumnFormatter will resolve the desired attribute.
 
 
What do you think about this approach?
 
Thanks in advance,
Flo

 

 


Back to the top