• 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: Reusable Components - one last question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reusable Components - one last question


  • Subject: Re: Reusable Components - one last question
  • From: Ray Ackland <email@hidden>
  • Date: Sat, 25 Oct 2003 15:14:17 +1300

Thanks for all the suggestions. Calling the methods from takeValuesFromRequest() achieved what I was wanting. That's another part of WO I am now more comfortable with, where a week ago it was too daunting to investigate.

ray.

On Tuesday, Oct 21, 2003, at 05:25 Pacific/Auckland, email@hidden wrote:

There are two basic ways for bindings to be sent back and forth. The most
basic is to let WO do it for you---this is the default. When WO does it
for you, I believe that bindings are exchanged at the beginning and end
of each of the request-response control points: appendToResponse,
takeValuesFromRequest, and invokeAction. However, I don't know the
details of exactly how and when this works----my general principle is
that if you find yourself needing to know the details, you should move on
to the second way of sending bindings back and forth.


Hope this helps as an introduction.

--Jonathan



On Mon, 20 Oct 2003 10:48:08 +1300 Ray Ackland wrote:

With the help and input from Andrew (and Art), my page is continuing to
progress and I am feeling quite pleased with my new knowledge.


The thing I am wanting to do now (aren't I ever satisfied?) is to
access methods in the sub-component. For instance, the parent provides
the child with the name of an entity. The child then needs to do a
fetch and perform calculations to get the result to display.

I would like to know where I should call those methods? In particular,
at what stage are the binded variables set? I have tried calling the
methods from the constructor (didn't really expect it to work), and
from the awake() method.

Each time the bound variable was still null. I also added the method
ensureAwakeInContext() but this didn't seem to have an effect.

My end result was to use the method valueForBinding() to set them
explicitly, but is this really necessary?

Any suggestions?

ray.
_______________________________________________
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: 
 >Re: Reusable Components - one last question (From: email@hidden)

  • Prev by Date: Panther and Oracle 9 Dev Release
  • Next by Date: Re: KVC and static methods (was Hairy Java related question)
  • Previous by thread: Re: Reusable Components - one last question
  • Next by thread: LONG column problem?
  • Index(es):
    • Date
    • Thread