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 <andre.ro...@phosco.info
> <mailto:andre.ro...@phosco.info>> 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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/andre.rothe%40zks.uni-leipzig.de
> 
> This email sent to andre.ro...@zks.uni-leipzig.de
> 

-- 
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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to