Re: Bindings with 'this'
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