• 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
WOComponent Function Call Order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOComponent Function Call Order


  • Subject: WOComponent Function Call Order
  • From: Louis-Olivier Roof <email@hidden>
  • Date: Mon, 10 Dec 2012 13:41:20 -0500

Hello WebObjects community, this is my first question so don't be too hard on me ;)

Lets say I have a wo:loop  in a component...

     <wo:loop list = "$dg.displayedObjects" item = "$aItem">
        <tr>
          <td> <wo:string value = "$~timeConsumingCallA()" /> </td>
          <td> <wo:string value = "$~timeConsumingCallB()" /> </td>
          <td> <wo:string value = "$~callDependingOn_A_and_B()" /> </td>
        </tr>
      </wo:loop>

  • Functions timeConsumingCallA() and timeConsumingCallB() are, as their name imply, costly calls.
  • Function callDependingOn_A_and_B() depends on the results of the two first functions.

Is there any guarantee that the two function calls (timeConsumingCallA, timeConsumingCallB) will always be called in order and before callDependingOn_A_and_B() so I can set and depend on instance variables $timeConsumingCallA_result and $timeConsumingCallB_result in the callDependingOn_A_and_B() function?

If not, I can see a number of ways I could myself make sure the calls are made in the correct order in straight-Java, but I was wondering if there was a "Wonder/WebObjects" strategy to approach this.

Thanks for your time,

-- 
Louis-Olivier Roof, Eng.
Software Engineer
Obzerv Technologies Inc.
400, Jean-Lesage, suite 201,
Québec (Québec)
Canada, G1K 8W1
T. (418) 524-3522
F. (418) 524-6745
www.obzerv.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

  • Follow-Ups:
    • Re: WOComponent Function Call Order
      • From: Maik Musall <email@hidden>
    • Re: WOComponent Function Call Order
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: Binary Plist generation very slow
  • Next by Date: Re: WOComponent Function Call Order
  • Previous by thread: Re: pageConfiguration and swapping menus?
  • Next by thread: Re: WOComponent Function Call Order
  • Index(es):
    • Date
    • Thread