yeah .. "i need to access a parent component" is almost ALWAYS a red flag of "you're doing it wrong" ... you should be using synchronize bindings = false in the child component, pass in a binding for the value from the parent, and lazily request the computed value when you need it.
ms On Sep 28, 2010, at 4:47 PM, Timo Hoepfner wrote: > Pass it via bindings... A bit more context would make it easier to help > you... :) > > Timo > > Am 28.09.2010 um 22:33 schrieb Stefan Klein: > >> Hi, >> >> my problem is not to access the 'parent'. >> I had a component in an WOComponentContent and need access direct to the >> surrounding component. >> >> page >> compA >> compB >> compC >> compD >> compE >> compZ >> >> compC to comE need values from compB. >> >> (Arrgh, i think my English is not good enough to explain that) :-P . >> >> Stefan >> >> >> Am 28.09.10 22:26, schrieb Farrukh Ijaz: >>> Hi >>> >>> use ^ instead of $ in your bindings. >>> >>> Farrukh >>> >>> On 2010-09-28, at 11:24 PM, Stefan Klein wrote: >>> >>>> Hi, >>>> >>>> is there anyway to access the surrounding component. >>>> >>>> Example : >>>> >>>> <wo: comp1> >>>> <wo comp2 /> >>>> </wo> >>>> >>>> Is there anyway for comp2 to find com1 ? >>>> >>>> Stefan >>>> _______________________________________________ >>>> Do not post admin requests to the list. They will be ignored. >>>> Webobjects-dev mailing list ([email protected]) >>>> Help/Unsubscribe/Update your Subscription: >>>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com >>>> >>>> This email sent to [email protected] >>> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/th-dev%40onlinehome.de >> >> This email sent to [email protected] > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
