Hi Daniel, Here's some additional explanation from another list email...
> Re Usage: > > The AjaxNotifcationCenter must come before any of the observed fields. In the > example, I use the aboveDisplayPropertyKeys repetition to enforce that, but > it could just as easily exist in displayPropertyKeys, as long as it is first. > The observers register their generated id with the notification center, so > it has to exist on the page first. > > Notification objects are the d2wContext, so each nested page has its own ANC. > The observers are just an Ajaxed D2WCustomComponent. So each dependent field > needs a couple of rules like: > > int: qual => componentName = AjaxObservingSwitch > int: qual => customComponentName = OriginalComponentName > > When properties change, they fire a notification and refresh the ANC. The > ANC receives the notification and passes the current D2WContext to the > propertyChangedDelegate object from the rule system. That tells the delegate > which property changed (propertyKey) and the delegate then passes back an > NSArray of propertyKeys that require a refresh. Ramsey On Mar 6, 2011, at 12:06 PM, David Holt wrote: > There is a a component that does exactly that in AjaxLook in Wonder. > > "Hi David, > > I have an example of dependent popups here: > > https://r2d2w.svn.sourceforge.net/svnroot/r2d2w/trunk/ERR2d2w/Support/AjaxLook.zip > > I think the same approach should be applicable to what you are describing. > The components to do this are now in wonder in the AjaxLook framework. > > Ramsey" > > > On 2011-03-06, at 8:17 AM, Daniel Mejia wrote: > >> Hi all, >> >> I need some help with D2W. >> >> I have a D2W edit page with two to one relationships attributes and I need >> to display in the second attribute just the values related to the selected >> value in the first attribute, something similar to the country ->state >> dependency, how can I do that in D2W? >> >> Saludos, >> >> Daniel. >> >> _______________________________________________ >> 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/programmingosx%40mac.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/ramseygurley%40gmail.com > > This email sent to [email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
