hi udo,

you have to  contribute the child property type to the 
DefaultDataTypeAnaylzer
so the BeanModelSource will not ignore it

public static void contributeDefaultDataTypeAnalyzer...{
   configuration.add(MyType.class,"myType");

take a look https://issues.apache.org/jira/browse/TAPESTRY-2460
it has two examples how to display a complex child property with another
block (containing another BeanEditor)

g,
kris




"Udo Abel" <[EMAIL PROTECTED]> 
25.06.2008 10:05
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
BeanModel and complex types?







Hi,

in many situations I have objects containing other objects as fields, 
resulting from a 1:1 reference in a database. E.g., an employee has a 
refrence to the subsidiary where he is working.
In those cases I want to display the name of the subsidiary in a Grid 
component.
The property can be accessed by something like
employee.getSubsidiary().getName();

Is there a way to extend the BeanModel to access those properties?
Or do I have to duplicate all fields from complex types in simple fields 
at the top level object, like
employee.getSubsidiaryName();
?

Thanks,
Udo.
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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


Reply via email to