Re: attempt to assign value to unknown key
Re: attempt to assign value to unknown key
- Subject: Re: attempt to assign value to unknown key
- From: Art Isbell <email@hidden>
- Date: Sat, 31 Jul 2004 14:23:14 -1000
On Jul 31, 2004, at 2:09 AM, Amorya North wrote:
Reason:
[<com.webobjects.appserver.WOComponent name: TabsForShows
subcomponents: null > takeValueForKey()]: attempt to assign value to
unknown key: 'showID'. This WOComponent does not have an instance
variable of the name showID or _showID, nor a method of the name
setShowID or _setShowID
The thing is, TabsForShows (the subcomponent I'm trying to call) _does_
have a key called showID.
This can occur if the showID instance variable isn't public and no
public access methods exist. public instance variables don't support
good object-oriented design, so a protected or private instance
variable with public accessors is better.
Aloha,
Art
_______________________________________________
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.