Re: Binding Synchronisation
Re: Binding Synchronisation
- Subject: Re: Binding Synchronisation
- From: Colin Clark <email@hidden>
- Date: Mon, 28 Feb 2005 16:31:12 -0500
Hi David,
Chuck's Practical WebObjects book has a good overview of WOComponents including a section on the "mysteries" of binding synchronization which outlines the flow of bindings quite nicely.
At very least you can--if necessary--manually push values from the child into the parent by doing something along the lines of:
parent().takeValueForKey(someCategory, "selectedCategory");
Unfortunately I don't know of any Apple-supplied documentation that really illuminates binding synchronization.
I hope that helps,
Colin
On Monday, February 28, 2005, at 03:42 PM, David Griffith wrote:
Hi all,
Can someone point me to a good tutorial on binding synchronisation? I have a subcomponent in which I want to set a value from the parent to the child. That is no problem. However I want to also set a value from child to parent (which I have managed before under different circumstances). However, I would like to get a complete overview of exactly how binding sync works and it’s not explained in much detail anywhere I have seen it so far.
Basically what I am doing is this:
I have products, each of which has a category.
I want the category selector subcomponent to receive a value from the parent (this will be a category, for example one that cannot be selected from the category selector because it is the current category or something like that). Then, when the user clicks a category in the subcomponent, I want it to be able to set that back to the parent. However, the user can also selected the category from a list in the parent if they wish. My problem is really with where and when and how the bindings are set between parent and child and how to properly control it in a manual scenario. I have spent a lot of time on it but still don’t fully understand it.
Any help would be really appreciated,
Kind regards,
David. _______________________________________________
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
---
Colin Clark
Dynamic Web and Database Development Lead,
Resource Centre for Academic Technology,
University of Toronto
(416) 946-7592 / email@hidden
_______________________________________________
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