Re: Custom Main Component
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