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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to