• 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: Blank From Parent WOComponent When Accessing From Embedded Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blank From Parent WOComponent When Accessing From Embedded Components


  • Subject: Re: Blank From Parent WOComponent When Accessing From Embedded Components
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 24 Apr 2004 10:40:16 -0700

Everything is passed by reference.

At 10:22 AM 24/04/2004 -0700, Hunter Hillegas wrote:
>Thanks to all.
>
>Method 2 is working and I avoided a design mistake....
>
>Binding question... are these pass by reference or by value when I use
>this method?
>
>On Apr 24, 2004, at 9:44 AM, Chuck Hill wrote:
>
>> 1. parent() does not return a useful value in the constructor.
>> 2. What you are doing is not the WO way.  Pass theHotemItem to the
>> children
>> in a binding.  This works better and reduced the coupling between
>> components.
>>
>> Chuck
>>
>>
>> At 10:10 PM 23/04/2004 -0700, 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.
>>>
>>>
>>
>> --
>>
>> Chuck Hill                                 email@hidden
>> Global Village Consulting Inc.
>> http://www.global-village.net
>> _______________________________________________
>> 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.
>>
>
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
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.


References: 
 >Re: Blank From Parent WOComponent When Accessing From Embedded Components (From: Chuck Hill <email@hidden>)
 >Re: Blank From Parent WOComponent When Accessing From Embedded Components (From: Hunter Hillegas <email@hidden>)

  • Prev by Date: Re: Blank From Parent WOComponent When Accessing From Embedded Components
  • Next by Date: Re: Xcode Tools v1.2 and WebObjects 5.2.3
  • Previous by thread: Re: Blank From Parent WOComponent When Accessing From Embedded Components
  • Next by thread: WOComponent parent() Followup
  • Index(es):
    • Date
    • Thread