valery.stroeder
28 Jan 2010, 1:08 AM
Hello everybody,
I'm facing the following problem :
I have grid displaying a list of beans (for example a Grid<Employee>). Suppose these beans and its properties:
Employee.java
String lastname
String firstname
List<Address> addresses
Address.java
String postalCode
String town
Street street
Street.java
String streetName
Integer streetNumber
My actual grid display lastname and firstname without any problem via the ColumnModel build with a columnConfig.
To display lastname and firstname I just have two columnConfigs :
myColumnConfig.setId("firstname");
myColumnConfig.setId("lastname");
What about the address ? I tried to display it using :
myColumnConfig.setId("addresses");
But it only displays a sort of : [myPackage.address@351b]
Is there a way to display the first address for example ? Is there a way to display the street class properties' values of the first address ?
Thanks for your help.
I'm facing the following problem :
I have grid displaying a list of beans (for example a Grid<Employee>). Suppose these beans and its properties:
Employee.java
String lastname
String firstname
List<Address> addresses
Address.java
String postalCode
String town
Street street
Street.java
String streetName
Integer streetNumber
My actual grid display lastname and firstname without any problem via the ColumnModel build with a columnConfig.
To display lastname and firstname I just have two columnConfigs :
myColumnConfig.setId("firstname");
myColumnConfig.setId("lastname");
What about the address ? I tried to display it using :
myColumnConfig.setId("addresses");
But it only displays a sort of : [myPackage.address@351b]
Is there a way to display the first address for example ? Is there a way to display the street class properties' values of the first address ?
Thanks for your help.