Re: custom display for WOToManyRelationship destinationDisplayKey
Re: custom display for WOToManyRelationship destinationDisplayKey
- Subject: Re: custom display for WOToManyRelationship destinationDisplayKey
- From: Lachlan Deck <email@hidden>
- Date: Wed, 30 Aug 2006 03:11:43 +1000
Hi there,
On 29/08/2006, at 2:02 AM, Dev WO wrote:
Hello all,
I've been searching this week end on how to customize the display
of a WOToManyRelationship destinationDisplayKey.
Here's what I have:
-a framework with my objects classes
-an application with a WOToManyRelationship
I suppose what you want could be done by your EO subclass. i.e.,
overriding the method indicated by destinationDisplayKey to return
what you want.
I'd like to change the value of the display string, but I just
can't find how to. Precisely I'd like to get the value from
a .strings file using WOResourceManager.
My issue is that I cannot use a custom method in the framework as
it appears WOResourceManager doesn't work, at least I couldn't make
it work (I used WOApplication.application().resourceManager(), but
I got null value,
That's weird.
So I tried adding a method to my application component class, but
it looks like WOToManyRelationship doesn't even call my method!
What are you passing?
And I would have to pass the destination objet to this method to be
able to extract the requested key(s) and create the display string...
Why?
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden