Hi DH,

you can teach Location a standard way to be outputted by overwriting the toString() function of Location.

Now you can output the String returned by toString() simply by including "location".

If you want to output different properties of Location and not in one cell, I think you will have to add location_city, location_street etc and implement <t:parameter> blocks for it.

Hope that helps,
Tobias

dhning schrieb:
Hi, All

Case: A user own a location while the location is comprised of city, street...
public class User {
  private Location location;
  // setter & getter
}
public class Location {
  private String city;
 // setter & getter
}

In the user list page, I want to display the city as one column in Grid.
But it doesn't work like this <table t:type="grid" t:source="userSource" 
include="location.city"></table>.
The exception message is "User does not contain a property named 
'location.city'".

Is there a simple way to implement such function?

Thanks in advance.
DH


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to