• 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: Binding WOString to method with parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding WOString to method with parameters


  • Subject: Re: Binding WOString to method with parameters
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 28 Mar 2004 12:24:21 -0800

Read the docs on 'binding synchronization'. WO automatically moves the bound values in both directions ensuring the correct value is in the correct place at the correct time.

Chuck


On Mar 28, 2004, at 11:08 AM, Randall Cayford wrote:

At 6:54 PM -1000 3/25/04, Art Isbell wrote:

If I can't do functions with arguments, I could have a class instance variable instead:

int currentLane;
int getSpeed() {
   return(speed[currentLane]);
}

But then how do I wrap the WOString in something which allows me to set the currentLane variable for the particular cell?

A WORepetition has an "index" key that can be bound to your "currentLane" instance variable (0- not 1-based). Then with your WOStrings' value keys bound to "getSpeed", your cells should be appropriately populated.

I see how to communicate from my table cell back to the page component using WORepetition using the index key.


Is there a component which does this in a more general way? In other words, is there some way to have a component (table cell, WOString, whatever) set values in the page component? It seems very easy to pull values from the page component for use in the subcomponent but I can't see anyway to pass information the other way. Except for a couple of specialized cases like the index in WORepetition.


Randall
_______________________________________________
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.
_______________________________________________
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: 
 >Binding WOString to method with parameters (From: Randall Cayford <email@hidden>)
 >Re: Binding WOString to method with parameters (From: Art Isbell <email@hidden>)
 >Re: Binding WOString to method with parameters (From: Randall Cayford <email@hidden>)

  • Prev by Date: Re: Page creation and usage
  • Next by Date: Re: HELP: Problem using WebServices Assistant
  • Previous by thread: Re: Binding WOString to method with parameters
  • Next by thread: Re: Binding WOString to method with parameters
  • Index(es):
    • Date
    • Thread