• 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: Bindings with 'this'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings with 'this'


  • Subject: Re: Bindings with 'this'
  • From: Christian Pekeler <email@hidden>
  • Date: Sun, 10 Jul 2005 23:52:26 -0600

I have a subcomponent on a page that has a binding called currentPage that I want to bind the main component to. I tried using 'this' but KVC dies. Is the best way to do this just to have a method that returns itself or is there a keyword that will resolve to the current component?

If you can change the subcomponent, I'd consider removing currentPage as a binding and using context().page() in the implementation instead.


Or you could add this method:

public WOComponent self() {
    return this;
}

and then bind currentPage to self.


Christian

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Bindings with 'this' (From: Greg <email@hidden>)

  • Prev by Date: new WO project for servlet-deploy internal errors
  • Next by Date: Re: Old WOBuilder Lives!
  • Previous by thread: Bindings with 'this'
  • Next by thread: new WO project for servlet-deploy internal errors
  • Index(es):
    • Date
    • Thread