• 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: $parent.method binding error in eclipse
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $parent.method binding error in eclipse


  • Subject: Re: $parent.method binding error in eclipse
  • From: Guido Neitzer <email@hidden>
  • Date: Tue, 6 Jan 2009 10:23:17 +0100

On 04.01.2009, at 19:55, Yung-Luen Lan wrote:

I have a template component with a such line:

<wo:if condition = "$parent.authorized">

which calls the authorized() method of the parent component.

However, eclipse always display an error saying there is no key
'authorized' for the keypath 'parent' in my class.
How do I make the error message disappear? Thanks.

Make a getter/setter pair for parent:

public ParentClass parent () {
	return parent;
}

public void setParent (ParentClass newParent) {
	parent = newParent;
}

You probably have parent as a protected ivar. I tend to name the vars _parent and use only getters and setters.

cug
_______________________________________________
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: $parent.method binding error in eclipse
      • From: Lachlan Deck <email@hidden>
References: 
 >$parent.method binding error in eclipse (From: "Yung-Luen Lan" <email@hidden>)

  • Prev by Date: Re: Removing < > = etc. from the drop down in D2W search
  • Next by Date: Re: Reading a line at a time with NSData?
  • Previous by thread: $parent.method binding error in eclipse
  • Next by thread: Re: $parent.method binding error in eclipse
  • Index(es):
    • Date
    • Thread