Re: Adding a custom RHS value to a D2JC component?
Re: Adding a custom RHS value to a D2JC component?
- Subject: Re: Adding a custom RHS value to a D2JC component?
- From: "B. Shank" <email@hidden>
- Date: Tue, 18 Mar 2003 22:48:56 -0800
Eric,
Starting with 5.2, there's an easy way to restrict the items in certain
controllers like EOOneValueEnumerationController: the
availableTitlesKey RHS key. For the RHS value, specify a key or key
path to your application's EOs. The What's New in 5.2 doc talks more
about this:
http://developer.apple.com/techpubs/webobjects/WhatsNew/WhatsNew/
chapter_1_section_34.html
Other keys listed in
http://developer.apple.com/techpubs/webobjects/DesktopApplications/
Appendix_A/chapter_27_section_3.html can help you accomplish similar
things, depending on the controllers you want to affect.
Brent
On Tuesday, March 18, 2003, at 10:13 PM, Eric Hermanson wrote:
I would like to add a key to EOOneValueEnumerationController that will
define the 'filterKey' the controller should use to restrict the list.
I thought that if I simply added a rule with the proper LHS qualifier
that the EOXMLArchiver process would pass the resulting RHS value to
my custom controller class. It does not.
I realized I might have to create a full-fledged 'widgetController'
and the associated ".wo" package, and then add my new custom key to
the WOXMLNode bindings (i.e. filterKey = d2wContext.filterKey).
However, when I tried this WO complained that it could not find the
matching WOComponent class. My controller class is of course a
subclass of eoapplication.EOController, not WOComponent. So how does
Apple get their D2JC "wo" components plugged in if they're not
subclasses of WOComponent?
Anyway, maybe there's an easier way to pass a custom key to my
controller? Are the RHS values placed into the D2WContext such that
the controller code has access to them by calling a certain method?
Thank You,
Eric
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.