• 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: Overriding pageWithName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding pageWithName


  • Subject: Re: Overriding pageWithName
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 20 Jan 2004 13:57:34 -0800
  • Organization: Global Village Consulting, Inc.

arturo wrote:

I believe that I need to override pageWithName.  Is it documented anywhere
what this actually does?

Don't be silly!

In particular, the API contains 3 pageWithNames
1. Application.pageWithName().
2. WOComponent.pageWithName().
3. IIRC, WOAction.pageWithName().

Are they all "guaranteed" (ha! we're talking about WO here :-) to call
WOComponent.pageWithName()?
No, but I believe they all call the application version. The WOComponent version would be implemented as
application().pageWithName(name, context());


While the WOAction one is
WOApplication.application().pageWithName(name, context());


And if so, is that "guaranteed" (ditto) to call the WOComponent.constructor?
No.

Actually, I bet the constructor
doesn't get called for stateless WOComponents except for the first instance.

Well one instance per concurrent thread and one instance per usage on a page (e.g. in a repetition).

That way, I just need to override/subclass WOComponent's pageWithName.

I've done a fair bit of this.  What are you trying to do?

Chuck

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net

It is a funny thing about life; if you refuse to accept
anything but the best, you very often get it."
  --  W. Somerset Maugham

<shamelessPlug>
  Practical WebObjects
  http://www.amazon.com/exec/obidos/tg/detail/-/1590592964
</shamelessPlug>
_______________________________________________
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.

  • Follow-Ups:
    • Re: Overriding pageWithName
      • From: arturo <email@hidden>
References: 
 >Overriding pageWithName (From: arturo <email@hidden>)

  • Prev by Date: Re: Overriding pageWithName
  • Next by Date: Re: Overriding pageWithName
  • Previous by thread: Re: Overriding pageWithName
  • Next by thread: Re: Overriding pageWithName
  • Index(es):
    • Date
    • Thread