• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Odd Problem -- WO can't find a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >variable return-classes (From: jacques couzteau <email@hidden>)

  • Prev by Date: Re: best practice(s) for validating properties.. and the answer is...
  • Next by Date: PostgreSQL 7.3 and EOModeler - Integer?
  • Previous by thread: Re: Code for https?
  • Next by thread: Looking for Mac Programmers
  • Index(es):
    • Date
    • Thread