Odd Problem -- WO can't find a method
Odd Problem -- WO can't find a method
- Subject: Odd Problem -- WO can't find a method
- From: "Mark W. Shead" <email@hidden>
- Date: Sun, 7 Sep 2003 15:01:54 -0400
I've been experimenting with Web Objects and everything was going fine,
but suddenly I can't create links between my components. Previously
created links still work, but new ones don't. For example in the code
below, I have two methods to take me to the Addresses page.
public Addresses toAddresses()
{
Addresses nextPage = (Addresses)pageWithName("Addresses");
return nextPage;
}
public Addresses toAddresses2()
{
Addresses nextPage = (Addresses)pageWithName("Addresses");
return nextPage;
}
These methods are bound to two hyperlinks called Addresses and
Addresses2 respectivly. As far as I can tell they are identical, but
the first one works correctly and the second one returns:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [
valueForKey()]: lookup of unknown key: 'toAddresses2'. This WOComponent
does not have an instance variable of the name toAddresses2 or
_toAddresses2, nor a method of the name toAddresses2, _toAddresses2,
getToAddresses2, or _getToAddresses2
If I swap the bindings the second method still fails. Does anyone have
any idea why WebObjects would be unable to locate the second method?
_______________________________________________
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.