• 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: Custom Main Component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Main Component


  • Subject: Re: Custom Main Component
  • From: Francis Labrie <email@hidden>
  • Date: Fri, 11 Apr 2008 09:02:06 -0400

Stefan Klein wrote:
you can change / overwrite:

    public WOActionResults defaultAction()
    {
        return pageWithName(MyPage.class.getName());
    }

in DirectAction.java


And don't forget to override WOApplication's "pageWithName(String, WOContext)" too:

public WOComponent pageWithName(String name, WOContext context) {
WOComponent page;

if((name == null) || "Main".equals(name)) {
page = super.pageWithName(MyPage.class.getName(), context);
} else {
page = super.pageWithName(name, context);
} // else

return(page);
} // pageWithName


--

Francis Labrie

Saint-Bruno-de-Montarville, Quebec, Canada


 _______________________________________________
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

  • Follow-Ups:
    • Re: Custom Main Component
      • From: Mike Schrag <email@hidden>
References: 
 >Custom Main Component (From: "Daniele Corti" <email@hidden>)
 >Re: Custom Main Component (From: Stefan Klein <email@hidden>)

  • Prev by Date: Re: JavaClient RMI and Validation
  • Next by Date: Re: Custom Main Component
  • Previous by thread: Re: Custom Main Component
  • Next by thread: Re: Custom Main Component
  • Index(es):
    • Date
    • Thread