Re: Blank From Parent WOComponent When Accessing From Embedded Components
Re: Blank From Parent WOComponent When Accessing From Embedded Components
- Subject: Re: Blank From Parent WOComponent When Accessing From Embedded Components
- From: King Chung Huang <email@hidden>
- Date: Sat, 24 Apr 2004 10:36:49 -0600
You're accessing the parent too early. You can probably get it during
awake(). For the example you presented, you could simply bind the
string directly to parent.theHotelItem.hotelName without making a local
instance variable.
King Chung Huang
Learning Commons
University of Calgary
On Apr 23, 2004, at 11:10 PM, Hunter Hillegas wrote:
I have several components that are inserted in another component via
the 'Custom WebObject' menu option in WOBuilder.
In the embedded components I have the following code in the
constructor:
theParentContainer = (RVHotelDetailMain)parent();
When I bind strings in this format:
theParentContainer.theHotelItem.hotelName
It comes back with no value...
If I do println on the variable from the parent component, it prints
the value:
DEBUG: Hotel: Bellagio
So... What am I doing wrong? Can't I access the parent as I did?
Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.