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

Re: WOLips questions


  • Subject: Re: WOLips questions
  • From: Paul Hoadley <email@hidden>
  • Date: Sat, 30 Sep 2017 10:15:48 +0930

Hi André,

On 29 Sep 2017, at 9:17 pm, André Rothe <email@hidden> wrote:

> I would like to know, where WebObjects defines, that the method
> DirectAction.defaultAction() will be called? There the Main component will be
> set as next (first) page, as I understand.

The Main component is hard-wired (as a magic string “Main”) in at least a
couple of places:

* WODirectAction.defaultAction()
* WOApplication.pageWithName(String aName, WOContext aContext)

In the latter case, WOApplication tries to instantiate the "Main" component if
aName is null. So if your goal is to ensure that some other component than Main
is the default page, you should override both of those methods. pageWithName()
can handle null as a special case, and otherwise return super.pageWithName().

> Can I configure another name of the default DirectAction class in my project?


If you mean can you configure some method other than defaultAction() to be the
default action, that’s obviously a slightly different goal. Other than
overriding the defaultAction() method, I don’t know of a way to “configure”
that, no.


--
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/


 _______________________________________________
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

References: 
 >WOLips questions (From: André Rothe <email@hidden>)

  • Prev by Date: Re: WOLips questions
  • Previous by thread: Re: WOLips questions
  • Index(es):
    • Date
    • Thread