• 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
Re: Not finding binding with "$^" notation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not finding binding with "$^" notation


  • Subject: Re: Not finding binding with "$^" notation
  • From: Sanford Selznick <email@hidden>
  • Date: Tue, 6 Jan 2009 09:06:10 -0700

At 10:57 PM +1100 1/6/09, Lachlan Deck wrote:
When I run my app I'm getting this error:

takeValueForKey()]: attempt to assign value to unknown key: 'title'. This WOComponent does not have an instance variable of the name title or _title, nor a method of the name setTitle or _setTitle' object '' key 'title'>

The error is telling you the problem. You've not got a setter for title in the PageWrapper component. You choices are:
a) do away with the carrot symbol and provide getter/setter methods in your components
b) override WOComponent#synchronizesVariablesWithBindings and return false (the default is true which requires a setter/getter for each key .. or, for those less inclined to proper encapsulation, a public variable)

Thank you very much for the assistance. It runs and works. But...

when doing (a) I get the compile-time error:

  "'title' must be bound to a settable variable"

I think I'm having installation issues. I am anxiously awaiting a new combo installer. :-)

Best,
  Sanford
_______________________________________________
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


  • Follow-Ups:
    • Re: Not finding binding with "$^" notation
      • From: Lachlan Deck <email@hidden>
References: 
 >Not finding binding with "$^" notation (From: Sanford Selznick <email@hidden>)
 >Re: Not finding binding with "$^" notation (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: D2W: Rules for the sub components of the EditRelationship page
  • Next by Date: Patch to 5.4.3???
  • Previous by thread: Re: Not finding binding with "$^" notation
  • Next by thread: Re: Not finding binding with "$^" notation
  • Index(es):
    • Date
    • Thread