• 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: André Rothe <email@hidden>
  • Date: Mon, 2 Oct 2017 11:33:26 +0200

Thank you Paul, that was the information I was looking for. If both the
DirectAction class name and Main class name are hard-wired without any
property to configure another name, then I shouldn't change that in my
project.

Best regards
André

On 30.09.2017 02:45, Paul Hoadley wrote:
> Hi André,
>
> On 29 Sep 2017, at 9:17 pm, André Rothe <email@hidden
> <mailto: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
>

--
UNIVERSITÄT LEIPZIG
Medizinische Fakultät
Zentrum für Klinische Studien Leipzig – KKS
André Rothe
CIO
Härtelstr. 16-18, 04107 Leipzig

Tel: 0341/ 97 16118
Fax: 0341/ 97 16189
WWW: http://www.zks.uni-leipzig.de

 _______________________________________________
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

  • Prev by Date: Re: Fetching data from a model
  • Next by Date: GWT
  • Previous by thread: Re: Fetching data from a model
  • Next by thread: GWT
  • Index(es):
    • Date
    • Thread