Can I register a PropertyHelper for a base class and have it handle its
subclasses too?

I have a hierarchy of Worker classes: AddressWorker, SiteAddressWorker

Address worker has a public "street" property and Site Address worker is its
subclass.

I need to be able to use a property path this this: 'worker.street'

I created a WorkerPropertyHelper and registered it thus:

PropertyHelper.register(AddressWorker.class, WorkerPropertyHelper.class);

Doesn't seem to work for subclasses though!

If the 'worker' in 'worker.street' is an AddressWorker everythings ok.
However if 'worker' is a Site Worker, I get an 'Unable to resolve property
worker.street' error.

Am I doing this wrong? Do I have to something special in my property helper
to have it include inherited properties?

Geoff

Geoffrey Longman
Intelligent Works Inc.


_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to