• 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: Webobjects-dev Digest, Vol 12, Issue 41
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Webobjects-dev Digest, Vol 12, Issue 41


  • Subject: Re: Webobjects-dev Digest, Vol 12, Issue 41
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 28 Jan 2015 12:08:46 -0500

Johann Werner gave a presentation at WOWODC12 on Dynamic Elements titled  “Dynamic Elements”. July 2, 2012

you may want to view this presentation. I think it is very clear!

On Jan 28, 2015, at 12:01 PM, Robert B. Hanviriyapunt <email@hidden> wrote:

Daniele,

If your components auto synchronize (true, by default), then all you would need to do is add a binding.

MyList.api
- add mySelection binding (when bound, this will cause array to be pushed down to the subcomponent as well as pushed up from the subcomponent at various times in request-response cycle)

if MyList does NOT auto synchronize, then you will need to at the least code push up to parent to have the parent get the value, OR use a shortcut (at least I know this shortcut is available in the WOD file):

MyList.wod:

Foo : MyList {
mySelection = ^mySelection;
}

Then bind a var in the parent component to the subcomponent

MyPage.wo
- add binding <wo:MyList mySelection=“$myPageMySelection”/>

see: http://en.wikibooks.org/wiki/WebObjects/Web_Applications/Development/WO_Component/Binding_Synchronization

But in general, pages/components don’t have direct access to subcomponents.  They push/pull values via bindings or share objects whose attributes can be seen by both component classes.

--
Robert B. Hanviriyapunt
Director of Product Development and Architecture


<LStreetC-logo-for-mail.png> / EDC Technology


Direct 312.246.5509
Fax 630.243.5799

email@hidden
email@hidden
http://www.EDCTechnology.com


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
  • Prev by Date: Re: Getting Selected Values from Subcomponents
  • Next by Date: Re: Getting Selected Values from Subcomponents
  • Previous by thread: Re: Getting Selected Values from Subcomponents
  • Next by thread: Qualifier involving many-to-many relationship
  • Index(es):
    • Date
    • Thread